G
Guest
I'm going nuts over this one.
IF I have the same last name the system will bring back the first record
with the last name that I chose no matter where in teh combobox it resides.
CustID is the key field but I don't want the user to i, but I need the
system to grab it to stuff the fields on the form. I have tried many ways but
this is what I have now
and my Afterupdate Property doe's not like a SQL statement with the CustID
in it.
The Afterupdate works but does no t bring back the correct record.
Here is what I have.
I have in the table
SELECT Prospect.CUSTID, Prospect.CUSTLAST, Prospect.CUSTFIRST,
Prospect.CUSTMID, Prospect.CUSTADD1, Prospect.CUSTCITY, Prospect.CUSTSTATE,
Prospect.CUSTZIP, Prospect.CUSTPHONE FROM Prospect ORDER BY
Prospect.CUSTLAST;
Combo Box Specs
0";1.3125";0.75";0.75";1";0.75";0.75";0.75";1"
Bound Column = 2
AfterUpdate
strNewRecord = "SELECT * FROM Prospect WHERE CustLast = '" &
Me!cmbProspect.Value & "'"
Thanks
IF I have the same last name the system will bring back the first record
with the last name that I chose no matter where in teh combobox it resides.
CustID is the key field but I don't want the user to i, but I need the
system to grab it to stuff the fields on the form. I have tried many ways but
this is what I have now
and my Afterupdate Property doe's not like a SQL statement with the CustID
in it.
The Afterupdate works but does no t bring back the correct record.
Here is what I have.
I have in the table
SELECT Prospect.CUSTID, Prospect.CUSTLAST, Prospect.CUSTFIRST,
Prospect.CUSTMID, Prospect.CUSTADD1, Prospect.CUSTCITY, Prospect.CUSTSTATE,
Prospect.CUSTZIP, Prospect.CUSTPHONE FROM Prospect ORDER BY
Prospect.CUSTLAST;
Combo Box Specs
0";1.3125";0.75";0.75";1";0.75";0.75";0.75";1"
Bound Column = 2
AfterUpdate
strNewRecord = "SELECT * FROM Prospect WHERE CustLast = '" &
Me!cmbProspect.Value & "'"
Thanks