Because Can and Truck are integers on the LookUpLists sheet, you need to convert the values of the textboxes to integers (using CInt).
Try this:
Private Sub cmdEnter_Click()
On Error Resume Next
If Me.txtCan.Text = "" Then
MsgBox "Please enter a Can.", vbCritical
Me.txtCan.SetFocus
Exit Sub
End If
If Me.txtTruck.Text = "" Then
MsgBox "Please enter a Truck.", vbCritical
Me.txtTruck.SetFocus
Exit Sub
End If
Me.txtCanType.Text = Application.VLookup(CInt(Me.txtCan.Text), Range("CanInfo"), 3, 0)
Me.txtGW.Text = Application.VLookup(CInt(Me.txtTruck.Text), Range("TruckInfo"), 3, 0)
End Sub
Dion
Bookmarks