Hi All:
Ok here we go. First off I am still learning so be gentle. I am trying to use a filter in the following manner:
If HUID.Value <> "" Then
DoCmd.OpenForm strfrmName, acNormal, , , acFormEdit, acWindowNormal
Forms!frmWeapons.Filter = "HUIDWeapon = " & Forms!frmEmployees!HUID.Value & ""
Forms!frmWeapons.FilterOn = True
End If
If, in the respective tables, I set HUID and HUIDWeapon to a number data type the above filter will work. However if I change the data type to text I will receive an error message stating that "You have cancelled the previous operation". If I debug the .Filter line is highlighted.
Any ideas????
TIA!!!!!!!!!!!!!!!!!!!!!!!!!!
-George
Ok here we go. First off I am still learning so be gentle. I am trying to use a filter in the following manner:
If HUID.Value <> "" Then
DoCmd.OpenForm strfrmName, acNormal, , , acFormEdit, acWindowNormal
Forms!frmWeapons.Filter = "HUIDWeapon = " & Forms!frmEmployees!HUID.Value & ""
Forms!frmWeapons.FilterOn = True
End If
If, in the respective tables, I set HUID and HUIDWeapon to a number data type the above filter will work. However if I change the data type to text I will receive an error message stating that "You have cancelled the previous operation". If I debug the .Filter line is highlighted.
Any ideas????
TIA!!!!!!!!!!!!!!!!!!!!!!!!!!
-George