T
Thomas Kroljic
All,
Not sure why this happens and hopefully someone can enlighten me. I have a
form that has a query assign to it:
(SELECT DepositLog.*, Customer.Addr1, Customer.Addr2, Customer.City,
Customer.State, Customer.Zip, Customer.HomePhone, DepositLog.CustomerID
FROM DepositLog INNER JOIN Customer ON DepositLog.CustomerID =
Customer.CustId
The data from the query is bind to the form fields. One of the fields of the
form is a combobox for the customer ID. When the form opens, the customer
names is displayed in the combo box and the address fields are display
appropriately.
The combo box has the following query assigned to it:
(SELECT Customer.CustLastName, Customer.CustFirstName, Customer.Addr1 AS a,
Customer.HomePhone AS b, Customer.CustId AS c, Customer.Addr1 AS d,
Customer.Addr2, Customer.City, Customer.State, Customer.Zip
FROM Customer
WHERE (((Customer.CustLastName)>" "))
ORDER BY Customer.CustLastName
Now the weird stuff. After the form is open and displaying the first record'
s information, if I change the customer name using the combo box, the
address fields on the form also change. How is this? I do not have any VBA
logic that moves the data in the combo boxes columns to the appropriate
fields on the form. It just happens magically.
Any thoughts? This is driving me a little crazy that I can't figure out why
it is changing the data that is being display in the address fields (addr1,
city, state, zip).
Thank you,
Thomas J. Kroljic
Not sure why this happens and hopefully someone can enlighten me. I have a
form that has a query assign to it:
(SELECT DepositLog.*, Customer.Addr1, Customer.Addr2, Customer.City,
Customer.State, Customer.Zip, Customer.HomePhone, DepositLog.CustomerID
FROM DepositLog INNER JOIN Customer ON DepositLog.CustomerID =
Customer.CustId
The data from the query is bind to the form fields. One of the fields of the
form is a combobox for the customer ID. When the form opens, the customer
names is displayed in the combo box and the address fields are display
appropriately.
The combo box has the following query assigned to it:
(SELECT Customer.CustLastName, Customer.CustFirstName, Customer.Addr1 AS a,
Customer.HomePhone AS b, Customer.CustId AS c, Customer.Addr1 AS d,
Customer.Addr2, Customer.City, Customer.State, Customer.Zip
FROM Customer
WHERE (((Customer.CustLastName)>" "))
ORDER BY Customer.CustLastName
Now the weird stuff. After the form is open and displaying the first record'
s information, if I change the customer name using the combo box, the
address fields on the form also change. How is this? I do not have any VBA
logic that moves the data in the combo boxes columns to the appropriate
fields on the form. It just happens magically.
Any thoughts? This is driving me a little crazy that I can't figure out why
it is changing the data that is being display in the address fields (addr1,
city, state, zip).
Thank you,
Thomas J. Kroljic