S
steve a
Hi,
I'm trying to get a command button to check that the entry in a combo box is
on the row source (sourced from another table which the form is not bound
to), even partial entries. so only complete entries are added..
I'm not sure how togo abouts this. I've tried:
private sub..(usual stuff). on click
If Me.combo.Value = [tblall2].name Then
Forms![activity form].txtname = Me.combo
DoCmd.Close
Else
'MsgBox "please enter a valid name"
'End If
end sub
where tblall2.name is the row which contains the names to check against.
i've tried the limit to list, but unfortunately this doesnt work..
any help would be appreciated.
many thanks
steve
I'm trying to get a command button to check that the entry in a combo box is
on the row source (sourced from another table which the form is not bound
to), even partial entries. so only complete entries are added..
I'm not sure how togo abouts this. I've tried:
private sub..(usual stuff). on click
If Me.combo.Value = [tblall2].name Then
Forms![activity form].txtname = Me.combo
DoCmd.Close
Else
'MsgBox "please enter a valid name"
'End If
end sub
where tblall2.name is the row which contains the names to check against.
i've tried the limit to list, but unfortunately this doesnt work..
any help would be appreciated.
many thanks
steve