T
Tyler
I've created a form to search another form. The information the user
would enter into the field would be the unique id and then they would
press a button below to search. The problem I have is that if the
unique ID does not already exist it will be created. Is there a way
to prevent this from occuring?
here is the code i have for the button.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Main"
stLinkCriteria = "[CI_File_Name]=" & "'" & Me![CI_File_Name] & "'"
DoCmd.Close
DoCmd.OpenForm stDocName, , , stLinkCriteria
would enter into the field would be the unique id and then they would
press a button below to search. The problem I have is that if the
unique ID does not already exist it will be created. Is there a way
to prevent this from occuring?
here is the code i have for the button.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Main"
stLinkCriteria = "[CI_File_Name]=" & "'" & Me![CI_File_Name] & "'"
DoCmd.Close
DoCmd.OpenForm stDocName, , , stLinkCriteria