B
Bob07790
Hi I have used this code in Access 2003 and it works with no errors in Access
2007 I get the following appear, the Find Box and the Enter Parameter Value
Box. By clicking ok in the Parameter value box without entering a value the
code continues to open the form on the correct record and the Find box
closes. How do I stop this happening?
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
stDocName = "frmHASABIDetails"
stLinkCriteria = "[CustomerID]=" & Me![CustomerID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Thanks Bob
2007 I get the following appear, the Find Box and the Enter Parameter Value
Box. By clicking ok in the Parameter value box without entering a value the
code continues to open the form on the correct record and the Find box
closes. How do I stop this happening?
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
stDocName = "frmHASABIDetails"
stLinkCriteria = "[CustomerID]=" & Me![CustomerID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Thanks Bob