Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frame vs DataModule.TAdoQuery

Status
Not open for further replies.

rcloutie

Programmer
May 26, 2005
164
CA
Hi there,

I have built a DataModule in which 2 Connections take place (TAdoConnection, TAdsConnection). For each connection, there's a query object associated with it to extract results (TAdoQuery and TAdsQuery).

So, many forms actually use these query objects directly and all works fine. Now, I'm trying to build a frame that will access the same query object as done within other forms. Msg 'Access Violation at address 004FCEAE'.

The problem occurs only when accessing query from within my frame: all works fine when accessing it from normal forms.

Any idea?

Thank you in advance
 
Solution found:
The DataModule was created after the main Form: so I simply put the DataModule in pole position...

Thanks for reading...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top