A
ArkRoyal
I have designed a database to record saving deposits made by members of a
local Credit Union. A number of members act as collectors on a rota basis,
when the office is open. The collection form has a combo box which is bound
to the member's ID number in a "Member" table. The combo box is set to
"Limited to List", and I use the "Not in List" event if a new member's ID
Number is to be added.
My problem is that several of the members seem to be pressing the space bar
before they start typing the members ID. This triggers the "Not In List"
event because it thinks that new new member is being added, causing a
duplicate name with a similar ID number to be added. How can I eliminate the
leading space before the "Not in List" event is triggered. I have tried
using the left() and Mid() functions as follows, but the "Not in List Event"
is still triggered.
If Left(Member ID,1) = " " then
Member ID = Mid(Member ID,2)
End If
I designed the database on Access2007, and saved it for use on Access2000.
local Credit Union. A number of members act as collectors on a rota basis,
when the office is open. The collection form has a combo box which is bound
to the member's ID number in a "Member" table. The combo box is set to
"Limited to List", and I use the "Not in List" event if a new member's ID
Number is to be added.
My problem is that several of the members seem to be pressing the space bar
before they start typing the members ID. This triggers the "Not In List"
event because it thinks that new new member is being added, causing a
duplicate name with a similar ID number to be added. How can I eliminate the
leading space before the "Not in List" event is triggered. I have tried
using the left() and Mid() functions as follows, but the "Not in List Event"
is still triggered.
If Left(Member ID,1) = " " then
Member ID = Mid(Member ID,2)
End If
I designed the database on Access2007, and saved it for use on Access2000.