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"
' Create QueryDef.
Set qryobjOrganization = appAccess.CreateQueryDef("qryOrganization", strSQL)
Me.RecordSource = "qryOrganization"