W
Walter
I have the following code and I keep getting a type mismatch error. I've
tried every possiblity that I can think of to no avail. I haven't been able
to find anything that seems to relate to my situation.
Dim strOldPosition As String
Dim strNewPosition As String
Dim intOldPosition As Integer
Dim intNewPosition As Integer
Dim intOldTire As Integer
Dim intNewTire As Integer
strOldPosition = Me.ActiveControl.Caption
strNewPosition = Nz(Forms!frmUpdateTireLocation!cboNewPosition, 0)
intOldPosition = _
"Select tblTirePosition.TirePositionID " & _
"From tblTirePosition " & _
"Where (((tblTirePosition.TirePosition) = """ & strOldPosition &
"""" & "));"
The code breaks at the query defining intOldPosition.
tblTirePosition.TirePosition is a text field. What am I missing?
tried every possiblity that I can think of to no avail. I haven't been able
to find anything that seems to relate to my situation.
Dim strOldPosition As String
Dim strNewPosition As String
Dim intOldPosition As Integer
Dim intNewPosition As Integer
Dim intOldTire As Integer
Dim intNewTire As Integer
strOldPosition = Me.ActiveControl.Caption
strNewPosition = Nz(Forms!frmUpdateTireLocation!cboNewPosition, 0)
intOldPosition = _
"Select tblTirePosition.TirePositionID " & _
"From tblTirePosition " & _
"Where (((tblTirePosition.TirePosition) = """ & strOldPosition &
"""" & "));"
The code breaks at the query defining intOldPosition.
tblTirePosition.TirePosition is a text field. What am I missing?