OpenForm syntax for AfterUpdate Event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My afterupdate event won't compile but returns an invalid argument error. My
syntax only requires that the form open as a "snapshot". So my current syntax
is:

Private Sub Combo40_AfterUpdate()
DoCmd.OpenForm(frmDimensionLookup).[acPreview]
End Sub

I am not a programmer, but I've been able to program with VB in maximizing
and zooming, but opening this form by entering parameters into a combo box
from another form isn't working. Any help is greatly appreciated.

Thank you, Petra
 
Petra,

Will this help?
DoCmd.OpenForm "frmDimensionLookup", , , , acFormReadOnly

Brian
 
Thank you Brian. Your syntax does not compile either. Any other suggestions?
Petra

Brian Bastl said:
Petra,

Will this help?
DoCmd.OpenForm "frmDimensionLookup", , , , acFormReadOnly

Brian


Petra said:
My afterupdate event won't compile but returns an invalid argument error. My
syntax only requires that the form open as a "snapshot". So my current syntax
is:

Private Sub Combo40_AfterUpdate()
DoCmd.OpenForm(frmDimensionLookup).[acPreview]
End Sub

I am not a programmer, but I've been able to program with VB in maximizing
and zooming, but opening this form by entering parameters into a combo box
from another form isn't working. Any help is greatly appreciated.

Thank you, Petra
 
What error message is given?


Petra said:
Thank you Brian. Your syntax does not compile either. Any other suggestions?
Petra

Brian Bastl said:
Petra,

Will this help?
DoCmd.OpenForm "frmDimensionLookup", , , , acFormReadOnly

Brian


Petra said:
My afterupdate event won't compile but returns an invalid argument
error.
My
syntax only requires that the form open as a "snapshot". So my current syntax
is:

Private Sub Combo40_AfterUpdate()
DoCmd.OpenForm(frmDimensionLookup).[acPreview]
End Sub

I am not a programmer, but I've been able to program with VB in maximizing
and zooming, but opening this form by entering parameters into a combo box
from another form isn't working. Any help is greatly appreciated.

Thank you, Petra
 
Incorrect Syntax

Brian Bastl said:
What error message is given?


Petra said:
Thank you Brian. Your syntax does not compile either. Any other suggestions?
Petra

Brian Bastl said:
Petra,

Will this help?
DoCmd.OpenForm "frmDimensionLookup", , , , acFormReadOnly

Brian


My afterupdate event won't compile but returns an invalid argument error.
My
syntax only requires that the form open as a "snapshot". So my current
syntax
is:

Private Sub Combo40_AfterUpdate()
DoCmd.OpenForm(frmDimensionLookup).[acPreview]
End Sub

I am not a programmer, but I've been able to program with VB in maximizing
and zooming, but opening this form by entering parameters into a combo box
from another form isn't working. Any help is greatly appreciated.

Thank you, Petra
 
Hmmm,

assuming you didn't misspell the form name, I'm not sure, since the syntax
provided definitely works for me. Perhaps it's a missing reference problem
?? Just guessing, obviously.

Brian


Petra said:
Incorrect Syntax

Brian Bastl said:
What error message is given?


Petra said:
Thank you Brian. Your syntax does not compile either. Any other suggestions?
Petra

:

Petra,

Will this help?
DoCmd.OpenForm "frmDimensionLookup", , , , acFormReadOnly

Brian


My afterupdate event won't compile but returns an invalid argument error.
My
syntax only requires that the form open as a "snapshot". So my current
syntax
is:

Private Sub Combo40_AfterUpdate()
DoCmd.OpenForm(frmDimensionLookup).[acPreview]
End Sub

I am not a programmer, but I've been able to program with VB in maximizing
and zooming, but opening this form by entering parameters into a
combo
box
from another form isn't working. Any help is greatly appreciated.

Thank you, Petra
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top