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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Querydef problem

Status
Not open for further replies.

tboerner

Programmer
Oct 19, 2001
23
US
In the following code, I'm getting some inconsistent behavior. Sometimes, the Me.RecordSource says the qryOrganization is not found. This only happens sometimes. It appears to be a timing issue. I put in a loop between the 2 lines of code, that does nothing. This alleviates the problem, but does anyone have a better way?!

' Create QueryDef.
Set qryobjOrganization = appAccess.CreateQueryDef("qryOrganization", strSQL)

Me.RecordSource = "qryOrganization"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top