R
RS Controls
I have a simple database it is based on company data i.e., customer data
(name/address 10 fields) invoice data (50 fields includes things like line
item descript, units, cost per and such)
My objective is to create a form to select the active customer and a sub
form to display or enter those customer’s invoices. Then to print a report
based on the combined information to create an invoice to mail out.
What I have is a sub form (invoicedata) attached to a form (customerdata)
and it works fine I have a report (report1) that looks like an invoice with
all the fields from a select query called (reportquery) I have my two tables
called (customerdatatable) and (invoicedatatable) on the (reportquery). the
relationship between the tables is customerid and invoiceid I want to search
for a particular invoice based on the invoicenumber field that comes form a
control on the sub form called advinvnumber (this is a combo box I use to
select the particular invoice I am working with)
In the query (reportquery) under field name invoicenumber table
invoicedatatable in the criteria I have entered many things and have the same
result when I run the form. I select an invoice and click the command button
to preview the report. I get a dialog box wanting the invoice number.
Things I have entered into the criteria field
(1) Forms.customerdata.invoicedata.form.advinvdata
(2) Forms!customerdata!invoicedata!form!advinvdata
(3) [Forms].[customerdata].[invoicedata].[form].[advinvdata]
(4) ) [Forms]![customerdata]![invoicedata]![form]![advinvdata]
Can some one tell me my mistakes your help would be much appreciated
(name/address 10 fields) invoice data (50 fields includes things like line
item descript, units, cost per and such)
My objective is to create a form to select the active customer and a sub
form to display or enter those customer’s invoices. Then to print a report
based on the combined information to create an invoice to mail out.
What I have is a sub form (invoicedata) attached to a form (customerdata)
and it works fine I have a report (report1) that looks like an invoice with
all the fields from a select query called (reportquery) I have my two tables
called (customerdatatable) and (invoicedatatable) on the (reportquery). the
relationship between the tables is customerid and invoiceid I want to search
for a particular invoice based on the invoicenumber field that comes form a
control on the sub form called advinvnumber (this is a combo box I use to
select the particular invoice I am working with)
In the query (reportquery) under field name invoicenumber table
invoicedatatable in the criteria I have entered many things and have the same
result when I run the form. I select an invoice and click the command button
to preview the report. I get a dialog box wanting the invoice number.
Things I have entered into the criteria field
(1) Forms.customerdata.invoicedata.form.advinvdata
(2) Forms!customerdata!invoicedata!form!advinvdata
(3) [Forms].[customerdata].[invoicedata].[form].[advinvdata]
(4) ) [Forms]![customerdata]![invoicedata]![form]![advinvdata]
Can some one tell me my mistakes your help would be much appreciated