J
Joy M
Hi -
Here is a quick run down of the situation:
tblClient
cliAccountNo PK
cliFirstName
cliLastName
cliAddress1
cliAddress2
tblInvoice
invInvoiceNo PK
invAccountNo FK
other Invoice fields
My form, frmInvoice, uses tblInvoice for RecordSource. It has a combo box
cboSelectClient which displays the clients first and last name, and stores
cliAccountNo in invAccountNo.
The question is - now that I have a value for cliAccountNo when I am using
frmInvoice, can I do some SQL so that I can display cliAddress1, cliAddress2
in unbound text boxes on frmInvoice?
Does this mean I should use query which contains tblInvoice and tblClient as
the RecordSource? If I do that, I want to just write a new Invoice record
when all the fields are full.
Is this possible? I imagine I would set the value of txtAddress1 in the
subprogram cboSelectClient_AfterUpdate. Do I use the Value or the Text
property of the unbound text box? Do I use SQL here?
If you know of any articles I can read, that might be helpful. Thanks for
your insight.
Joy
Here is a quick run down of the situation:
tblClient
cliAccountNo PK
cliFirstName
cliLastName
cliAddress1
cliAddress2
tblInvoice
invInvoiceNo PK
invAccountNo FK
other Invoice fields
My form, frmInvoice, uses tblInvoice for RecordSource. It has a combo box
cboSelectClient which displays the clients first and last name, and stores
cliAccountNo in invAccountNo.
The question is - now that I have a value for cliAccountNo when I am using
frmInvoice, can I do some SQL so that I can display cliAddress1, cliAddress2
in unbound text boxes on frmInvoice?
Does this mean I should use query which contains tblInvoice and tblClient as
the RecordSource? If I do that, I want to just write a new Invoice record
when all the fields are full.
Is this possible? I imagine I would set the value of txtAddress1 in the
subprogram cboSelectClient_AfterUpdate. Do I use the Value or the Text
property of the unbound text box? Do I use SQL here?
If you know of any articles I can read, that might be helpful. Thanks for
your insight.
Joy