Myriad_Rocker
Questioning Reality
- Local time
- Today, 04:50
- Joined
- Mar 26, 2004
- Messages
- 166
Hey everyone, thanks for taking a look at this! I really do appreciate it.
Here's the situation...
I have one form that contains customer information. They have a customer id and a contract effective date.
I have another form with payment information that has customer id and contract effective date. This table keeps track of their payments in the contract cycle by their effective date. Since a customer can have multiple contracts, they can have multiple effective dates, but their customer id never changes.
So, from the customer information form, I want to click a button to go to the payment screen...but when that payment screen comes up, I want it to populate information based on what was on the other form. ie customer id and contract effective date.
I was trying to do the record source for the form something like the following:
SELECT tblPMT.CustomerID, tblPMT.ContractEffDt, tblPMT.AmtPaid FROM tblPMT WHERE tblPMT.CustomerID = & txtCustID.text & AND tblPMT.ContractEffDt = & txtEffDate.text &
Once upon a time, this would have been easy for me. But since getting out of college, I haven't refreshed myself....can I reference a text box on a form in an SQL statement? If so, am I doing it correctly? If not, then how should I do this?
Here's the situation...
I have one form that contains customer information. They have a customer id and a contract effective date.
I have another form with payment information that has customer id and contract effective date. This table keeps track of their payments in the contract cycle by their effective date. Since a customer can have multiple contracts, they can have multiple effective dates, but their customer id never changes.
So, from the customer information form, I want to click a button to go to the payment screen...but when that payment screen comes up, I want it to populate information based on what was on the other form. ie customer id and contract effective date.
I was trying to do the record source for the form something like the following:
SELECT tblPMT.CustomerID, tblPMT.ContractEffDt, tblPMT.AmtPaid FROM tblPMT WHERE tblPMT.CustomerID = & txtCustID.text & AND tblPMT.ContractEffDt = & txtEffDate.text &
Once upon a time, this would have been easy for me. But since getting out of college, I haven't refreshed myself....can I reference a text box on a form in an SQL statement? If so, am I doing it correctly? If not, then how should I do this?