G
Guest
I have a work order form that contains several fields/lookup tables. I want
to fill a text box with a certain procedure based on the location field and
the activity field..I've used the following code successfully
Private Sub ActivityCode_Exit(Cancel As Integer)
If Me.ActivityCode.Value = "H40" Then
Dim strFileSpec As String
strFileSpec = CurrentProject.Path & "\" & "rb211post.txt "
Me.problem.Value = FileContents(strFileSpec, True)
End If
End Sub
but now I need to add the 'Me.LocationCode.Value = "L22" as another
qualifier to be able to decide which procedure to place in the 'problem' text
box. I've tried using If me.locationcode.value = x & me.activitycode.value =
y then execute the Dim strfilespec = z , but nothing happens....Any help
would be appreciated....thanks
to fill a text box with a certain procedure based on the location field and
the activity field..I've used the following code successfully
Private Sub ActivityCode_Exit(Cancel As Integer)
If Me.ActivityCode.Value = "H40" Then
Dim strFileSpec As String
strFileSpec = CurrentProject.Path & "\" & "rb211post.txt "
Me.problem.Value = FileContents(strFileSpec, True)
End If
End Sub
but now I need to add the 'Me.LocationCode.Value = "L22" as another
qualifier to be able to decide which procedure to place in the 'problem' text
box. I've tried using If me.locationcode.value = x & me.activitycode.value =
y then execute the Dim strfilespec = z , but nothing happens....Any help
would be appreciated....thanks