Hi All... I'm sure this is something very basic and simple - but I can't get it.
This line keeps shouting an 'Expected: expression' compile error at me -
Can anyone please advise?
Full Code:
This line keeps shouting an 'Expected: expression' compile error at me -
Code:
DoCmd.OpenReport tblEquipment, acViewNormal, , txtBarcode= & txtBarcode
Can anyone please advise?
Full Code:
Code:
Private Sub Command26_Click()
Dim x As Integer
x = MsgBox("Item succesfully loaned. Do you want to print a booking sheet?", vbYesNo)
If x = vbNo Then
x = MsgBox("no", vbOKOnly)
Else
x = DoCmd.OpenReport tblEquipment, acViewNormal, , txtBarcode= & txtBarcode
End If
End Sub