G
Guest
It's me again. I can't unerstand why I repeat the same process which worked
the first time...now it doesn't.
We have several thousand client entries in our database. The users have
requested that I create a combo box, which gets it's information from our
client list to populate new records for repeat clients. Easy enough.
Below is my "On Update" action...
Private Sub cmbGroupName_AfterUpdate()
Me!ACRONYM = Me![cmbGroupName].Column(2)
Me!SALUTATION = Me![cmbGroupName].Column(3)
Me!FIRSTNAME = Me![cmbGroupName].Column(4)
Me!MIDDLEINITIAL = Me![cmbGroupName].Column(5)
Me!CONTACT = Me![cmbGroupName].Column(6)
Me!NICKNAME = Me![cmbGroupName].Column(7)
Me!TITLE = Me![cmbGroupName].Column(8)
Me!ADDRESS1 = Me![cmbGroupName].Column(9)
Me!ADDRESS2 = Me![cmbGroupName].Column(10)
Me!CITY = Me![cmbGroupName].Column(11)
Me!STATE = Me![cmbGroupName].Column(12)
Me!ZIP = Me![cmbGroupName].Column(13)
Me!COUNTRY = Me![cmbGroupName].Column(14)
Me!PHONE = Me![cmbGroupName].Column(15)
Me!EXT = Me![cmbGroupName].Column(16)
Me!FAX = Me![cmbGroupName].Column(17)
Me!HOMEPHONE = Me![cmbGroupName].Column(18)
Me!EMAIL = Me![cmbGroupName].Column(19)
End Sub
It works great. I can create new records using the combo box to populate
the fields. I can create a new record, not on the existing list. The only
problem is, when I place my cursor in the combo box field and run "find" I
get an error message "The value you entered isn't valid for this field."
This only happens if I'm searching for records that existed prior to my
creating the combo box.
After creating the combo box, I added several new records. When I run the
search for those records, no problem.
PLEASE HELP!
Rhonda
P.S. I already tried switching column 1 and 2 (file # and name) It did not
solve the problem.
the first time...now it doesn't.
We have several thousand client entries in our database. The users have
requested that I create a combo box, which gets it's information from our
client list to populate new records for repeat clients. Easy enough.
Below is my "On Update" action...
Private Sub cmbGroupName_AfterUpdate()
Me!ACRONYM = Me![cmbGroupName].Column(2)
Me!SALUTATION = Me![cmbGroupName].Column(3)
Me!FIRSTNAME = Me![cmbGroupName].Column(4)
Me!MIDDLEINITIAL = Me![cmbGroupName].Column(5)
Me!CONTACT = Me![cmbGroupName].Column(6)
Me!NICKNAME = Me![cmbGroupName].Column(7)
Me!TITLE = Me![cmbGroupName].Column(8)
Me!ADDRESS1 = Me![cmbGroupName].Column(9)
Me!ADDRESS2 = Me![cmbGroupName].Column(10)
Me!CITY = Me![cmbGroupName].Column(11)
Me!STATE = Me![cmbGroupName].Column(12)
Me!ZIP = Me![cmbGroupName].Column(13)
Me!COUNTRY = Me![cmbGroupName].Column(14)
Me!PHONE = Me![cmbGroupName].Column(15)
Me!EXT = Me![cmbGroupName].Column(16)
Me!FAX = Me![cmbGroupName].Column(17)
Me!HOMEPHONE = Me![cmbGroupName].Column(18)
Me!EMAIL = Me![cmbGroupName].Column(19)
End Sub
It works great. I can create new records using the combo box to populate
the fields. I can create a new record, not on the existing list. The only
problem is, when I place my cursor in the combo box field and run "find" I
get an error message "The value you entered isn't valid for this field."
This only happens if I'm searching for records that existed prior to my
creating the combo box.
After creating the combo box, I added several new records. When I run the
search for those records, no problem.
PLEASE HELP!
Rhonda
P.S. I already tried switching column 1 and 2 (file # and name) It did not
solve the problem.