D
DubboPete
Hi all,
I have a problem with some code. It keeps spitting back type
mismatch. I have a similar thing to this in another database and it
works fine when fired by an option group-click. Here's the code:
Private Sub Text27_AfterUpdate()
If Me.Frame15 = 1 Then
Me.FrmAssetSubform.Form.RecordSource = "SELECT assets2.[ASSET
NUMBER]," & _
"assets2.[ASSET NAME], assets2.[ASSET TYPE], assets2.DEPARTMENT,
assets2.USER," & _
"assets2.[DATE ACQUIRED] FROM assets2 WHERE (((assets2.[ASSET
NUMBER]) Like" & _
"([Forms]![FrmAssetQuery]![text27]) & " * "))"
ElseIf Me.Frame15 = 2 Then
and so on...
Can't get past the first if me...then...statement. Any clues anyone?
cheers
DubboPete
I have a problem with some code. It keeps spitting back type
mismatch. I have a similar thing to this in another database and it
works fine when fired by an option group-click. Here's the code:
Private Sub Text27_AfterUpdate()
If Me.Frame15 = 1 Then
Me.FrmAssetSubform.Form.RecordSource = "SELECT assets2.[ASSET
NUMBER]," & _
"assets2.[ASSET NAME], assets2.[ASSET TYPE], assets2.DEPARTMENT,
assets2.USER," & _
"assets2.[DATE ACQUIRED] FROM assets2 WHERE (((assets2.[ASSET
NUMBER]) Like" & _
"([Forms]![FrmAssetQuery]![text27]) & " * "))"
ElseIf Me.Frame15 = 2 Then
and so on...
Can't get past the first if me...then...statement. Any clues anyone?
cheers
DubboPete