Re: Problems with Delphi 7
"ssspecter" <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
The problem was from the order of creation. The data module was being created after the form. (and I put the references to DM in creating the form) No wonder it didn't worked. Thanks for the help > you also want to make sure that the datamodule is before the form in teh list of auto-created forms, as this is the order of creation too. > > you need to make sure the datamodule is created before the form. > > Bob Swart <b.swart@c...> wrote: > Hi ssspecter, > > > The only thing I did was: > > - Create a TDataModule > > Make sure the data module is in the list of auto-created forms. If it > isn't, then your form cannot use the data module (or anything on it)... > > > - put 1 TADOConnect and 1 TADOTable in the DataModule > > - put in the onCreate method of the Form1: > > - DataModule.ADOConnect1.Connected:=true > > - DataModule.ADOTable1.Active:=True > > > > And then i try to run i get a "Access Violation at address ..." error > > type. What I am Doing Wrong???????? > > See Project | Options - Forms, and check to see if the data module is > autocreated. It probably isn't... ------------------------ Yahoo! Groups Sponsor ---------------------~--> Buy Naturally Painless & Spray Away Backaches & Joint Pain. $19.97 http://www.challengerone.com/t/l.asp?cid=2867&lp=m331.html http://us.click.yahoo.com/tJIe0D/79VGAA/ySSFAA/i7folB/TM ---------------------------------------------------------------------~-> Delphi Tips & Tutorials... http://www.delphicollection.com --------------------------------------------------------------- Unsubscribe:[email protected] List owner:[email protected] --------------------------------------------------------------- Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/