G
Guest
Hi all
Need a little help with the below if possible:
I have a cmd button that when clicked runs the following code:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "StockAvailability"
DoCmd.OpenForm stDocName, , , stLinkCriteria
This works fine... a parameter box first appears I then enter a stock no and
it then opens the form showing me the details for that stock item.
BUT
When I dont enter anything in the parameter box or even if I do enter
something and then click on cancel... it brings up a runtime error 2501?
Not sure why it does this and dont know how to fix or what to fix...
PLEASE HELP!!!
Thanks in advance
Need a little help with the below if possible:
I have a cmd button that when clicked runs the following code:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "StockAvailability"
DoCmd.OpenForm stDocName, , , stLinkCriteria
This works fine... a parameter box first appears I then enter a stock no and
it then opens the form showing me the details for that stock item.
BUT
When I dont enter anything in the parameter box or even if I do enter
something and then click on cancel... it brings up a runtime error 2501?
Not sure why it does this and dont know how to fix or what to fix...
PLEASE HELP!!!
Thanks in advance