A
Angi
I've done a search for saving unbound combo boxes and also how to refer
to values for dependent cbo boxes, but I couldn't find anything that I
could put together for what I'm trying to do. I'm so confused, I hope
I get the across the way I want it.
I've downloaded the templates on the microsoft website for customer
orders and a whole bunch of others. I've studied northwind, but the
part I'm stuck on doesn't apply.
I'm trying to create a form for quotes and I can't even get past the
main form! The ctl source for form is:
SELECT QuoteMain.QuoteID, QuoteMain.OrderDetailID, QuoteMain.CoID,
QuoteMain.InvoiceID, QuoteMain.ContactID, QuoteMain.OrderDate,
QuoteMain.PurchaseOrderNumber, QuoteMain.ShipDate,
QuoteMain.ShippingMethodID, QuoteMain.SalesTaxRate, CompMain.Address1,
CompMain.Address2, CompMain.City, CompMain.State, CompMain.Zip
FROM CompMain INNER JOIN QuoteMain ON CompMain.CoID = QuoteMain.CoID;
I have a bound cbo box to CoID which finds company names. Works great!
I have another cbo box Contact (currently bound to ContactID). This
lists the contacts within that company. It looks up the right names
but doesn't save the info. Well, it does seem to save them, but it's
not displaying them. Also, when I select the name, it stays there from
record to record, instead of going back to blank or showing the right
one. It's bound column is (0) which is the ContactID. It's
recordsource is
SELECT ContactMain.ContactID, ContactMain!FirstName & " " &
ContactMain!LastName AS Expr1, ContactMain.CoID FROM ContactMain WHERE
(((ContactMain.CoID)=Forms!zQuoteMain1![CoID])) ORDER BY
ContactMain!FirstName & " " & ContactMain!LastName;
I want to save this value for other things. What am I doing wrong??
Does this have to do with the fact that there isn't a relationship
between tblContacts and tblQuotes?? All my tables are connected by the
CoID which is PK for tblCompany
TIA! I know you guys get tired of this question but I honestly
couldn't find something similiar.
to values for dependent cbo boxes, but I couldn't find anything that I
could put together for what I'm trying to do. I'm so confused, I hope
I get the across the way I want it.
I've downloaded the templates on the microsoft website for customer
orders and a whole bunch of others. I've studied northwind, but the
part I'm stuck on doesn't apply.
I'm trying to create a form for quotes and I can't even get past the
main form! The ctl source for form is:
SELECT QuoteMain.QuoteID, QuoteMain.OrderDetailID, QuoteMain.CoID,
QuoteMain.InvoiceID, QuoteMain.ContactID, QuoteMain.OrderDate,
QuoteMain.PurchaseOrderNumber, QuoteMain.ShipDate,
QuoteMain.ShippingMethodID, QuoteMain.SalesTaxRate, CompMain.Address1,
CompMain.Address2, CompMain.City, CompMain.State, CompMain.Zip
FROM CompMain INNER JOIN QuoteMain ON CompMain.CoID = QuoteMain.CoID;
I have a bound cbo box to CoID which finds company names. Works great!
I have another cbo box Contact (currently bound to ContactID). This
lists the contacts within that company. It looks up the right names
but doesn't save the info. Well, it does seem to save them, but it's
not displaying them. Also, when I select the name, it stays there from
record to record, instead of going back to blank or showing the right
one. It's bound column is (0) which is the ContactID. It's
recordsource is
SELECT ContactMain.ContactID, ContactMain!FirstName & " " &
ContactMain!LastName AS Expr1, ContactMain.CoID FROM ContactMain WHERE
(((ContactMain.CoID)=Forms!zQuoteMain1![CoID])) ORDER BY
ContactMain!FirstName & " " & ContactMain!LastName;
I want to save this value for other things. What am I doing wrong??
Does this have to do with the fact that there isn't a relationship
between tblContacts and tblQuotes?? All my tables are connected by the
CoID which is PK for tblCompany
TIA! I know you guys get tired of this question but I honestly
couldn't find something similiar.