G
golfinray
I am using:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "07-09 Master new2"
stLinkCriteria = "[final Project ID#]=" & "'" & Me![New Project ID#] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
to open a form to a record in another form. That works great. What I want to
do is see if that record is the proper type (0607 project or 0709 project)
before it opens.
I tried (when people try to open an 0607 project with an 0709 project open)
if (me.[final project ID#]) like "0709-####-###*" then
msgbox "Please select an 0607 project"
end if
strlinkcriteria
etc
I can't get anything to work. HELP!!! Thanks so much!!!
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "07-09 Master new2"
stLinkCriteria = "[final Project ID#]=" & "'" & Me![New Project ID#] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
to open a form to a record in another form. That works great. What I want to
do is see if that record is the proper type (0607 project or 0709 project)
before it opens.
I tried (when people try to open an 0607 project with an 0709 project open)
if (me.[final project ID#]) like "0709-####-###*" then
msgbox "Please select an 0607 project"
end if
strlinkcriteria
etc
I can't get anything to work. HELP!!! Thanks so much!!!