saleemMSMS
Registered User.
- Local time
- Today, 20:24
- Joined
- Aug 12, 2009
- Messages
- 92
refer this code
comboType is a Combo Box. when the event is triggered,
an error message prompts saying "Invalid Use of Null"
so i used this method.
this seems to work but again when the combo box gets a string value which contains the ' symbol (apostrophe) the compiler identifies it as the end of the string which generates another error.
how can i use a combo box and yet having all those special characters in it ?
please reply..
Code:
Private Sub comboType_Change()
Me.Type.SetFocus
Me.Type.Text = DLookup("CBOTypeID", "[CBO Type]", "[CBO Type].Description = comboType")
End Sub
comboType is a Combo Box. when the event is triggered,
an error message prompts saying "Invalid Use of Null"
so i used this method.
Code:
Private Sub comboType_Change()
Me.Type.SetFocus
Me.Type.Text = DLookup("CBOTypeID", "[CBO Type]", "[CBO Type].Description ='"& comboType.Text & "'")
End Sub
this seems to work but again when the combo box gets a string value which contains the ' symbol (apostrophe) the compiler identifies it as the end of the string which generates another error.
how can i use a combo box and yet having all those special characters in it ?
please reply..