Using a query as a filter for a form

andy_dyer

Registered User.
Local time
Today, 19:22
Joined
Jul 2, 2003
Messages
806
Hi,

I am using the following code but it opens the form blank instead of with the 10 records that are displayed in the query.

The query links to the same table as the form is linked to and only has one criteria for when one field is Null.

Code:
DoCmd.OpenForm "frmPicture", acNormal, "qryMissingImage", acFormEdit, acWindowNormal

Any ideas why it is not working?

:confused:
 
Hi everyone!

I'm still stuck on this, any suggestions would be gratefully received!!

:confused: :confused:
 
Hi Andy,

Looks like you have missed a comma before acFormEdit. According to the syntax of OpenForm, that would use the enumerated value acFormEdit as a Where condition for the form's result set.

Hope that helps,
Keith.
 
Yes, that now works great!!

How simple was that?? And how silly do I feel?

Thanks v.v.v. much for saving my sanity!! :D
 

Users who are viewing this thread

Back
Top Bottom