M
michael.p.ryan1
I have a modal pop-up to search for records. There are 3 text boxes each with
it's own string function to return the value of the text box.
'Returns value of text boxes
SearchMake
SearchModel
SearchSerNo
'closes search form
DoCmd.Close
'opens [Form_View Asset]
If IsLoaded("[Form_View asset]") = True Then
[Form_View Asset].Requery
[Form_View Asset].SetFocus
Else
DoCmd.OpenForm [Form_View Asset]
End If
Form_View Asset is based on a query that has the string functions as
criteria. When I try to run the code, i end up with an error message saying
"an expression you entered is the wrong data type for one of the arguments"
Can anyone help me fix this issue?
it's own string function to return the value of the text box.
'Returns value of text boxes
SearchMake
SearchModel
SearchSerNo
'closes search form
DoCmd.Close
'opens [Form_View Asset]
If IsLoaded("[Form_View asset]") = True Then
[Form_View Asset].Requery
[Form_View Asset].SetFocus
Else
DoCmd.OpenForm [Form_View Asset]
End If
Form_View Asset is based on a query that has the string functions as
criteria. When I try to run the code, i end up with an error message saying
"an expression you entered is the wrong data type for one of the arguments"
Can anyone help me fix this issue?