OpenQuery Command

  • Thread starter Thread starter Sok
  • Start date Start date
S

Sok

Can someone please tell me why this line of code isn't
working?

DoCmd.OpenQuery("Requirements Master Table Query",
acViewPreview, acEdit)

Please let me know, thanks.
 
I think this is run without parentheses, for example:

DoCmd.OpenQuery "Requirements Master Table Query", acViewPreview,
acEdit

Also, if you use acViewPreview instead of acViewNormal, you will not be able
to edit the resultset.


hth,
 
Back
Top