Hello All,
Thanks in advance for the help - here goes
I am trying to program a find by having the user enter the search information in a field on one form and using that information to display the result on another.
I have a form called SearchMSDS and the field that the user enters the information into is called txtCompEntry.
When the user clicks the Search button I use an event procedure as follows
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Z-frmMSDS"
stLinkCriteria = "[Product_Description]=" & "*" & Me![txtCompEntry] & "*"
DoCmd.Close
DoCmd.OpenForm stDocName, , , stLinkCriteria
After entering information, say schmutz, and clicking the button I get the following error
Syntax error [missing operator] in query expression '[Product_Description] = *schmutz*'.
I have trieds to do this as a query and a macro also - any help would be greatly appreciated.
Thank you again.
Im Steven B
Thanks in advance for the help - here goes
I am trying to program a find by having the user enter the search information in a field on one form and using that information to display the result on another.
I have a form called SearchMSDS and the field that the user enters the information into is called txtCompEntry.
When the user clicks the Search button I use an event procedure as follows
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Z-frmMSDS"
stLinkCriteria = "[Product_Description]=" & "*" & Me![txtCompEntry] & "*"
DoCmd.Close
DoCmd.OpenForm stDocName, , , stLinkCriteria
After entering information, say schmutz, and clicking the button I get the following error
Syntax error [missing operator] in query expression '[Product_Description] = *schmutz*'.
I have trieds to do this as a query and a macro also - any help would be greatly appreciated.
Thank you again.
Im Steven B