only works when a breakpoint is removed

A

Arnold Klapheck

The following code does not work:

Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmCase_VehicleEditOnly"

stLinkCriteria = "[VehID]=" & Me![VehId]
DoCmd.openform stDocName, , , stLinkCriteria

except if a put a breakpoint at DoCmd then click the button on form that
starts this procedure, then F8, then remove breakpoint, then hit the continue
button, (in VB) then the next time I click on the button on the form it will
work.

Any ideas?
 
A

Arnold Klapheck

Was looking at properties and found I had Data Entry set to yes so was
bringing up a blank form. I set Data Entry to NO and it works fine.
 

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

Top