Form / Datasheet code question

J

JP

I have a form that opens a datasheet. I have some VBA in
the datasheet that pulls a ID from the form. However,
whenever the datasheet opens, it is in form view. I've
checked it over and made sure Form View is set to "NO".
It is set to Datasheet view only. Any ideas??
 
A

Allen Browne

If you are using OpenForm, specify the View:
DoCmd.OpenForm "MyForm", acFormDS
 
Top