R
ron
I have a form and a subform that have as their record
sources queries based on TblInvoice and TblInvoiceDetail
respectively. These two tables are linked by an auto-
number field [InvoiceNumber] that is the primary key in
TblInvoice and a foreign key in TblInvoiceDetail.
TblInvoiceDetail has its own auto-number primary key field
[DetailNumber]. I am wondering if there's a simple (or
not) way to make the auto-number field [DetailNumber]
generate a value based on the number generated in field
[InvoiceNumber]. Thus:
If
[InvoiceNumber] = 16
then the linked records would be
[DetailNumber] = 16-01
[DetailNumber] = 16-02
[DetailNumber] = 16-03
Doable?
Thanks,
ron
sources queries based on TblInvoice and TblInvoiceDetail
respectively. These two tables are linked by an auto-
number field [InvoiceNumber] that is the primary key in
TblInvoice and a foreign key in TblInvoiceDetail.
TblInvoiceDetail has its own auto-number primary key field
[DetailNumber]. I am wondering if there's a simple (or
not) way to make the auto-number field [DetailNumber]
generate a value based on the number generated in field
[InvoiceNumber]. Thus:
If
[InvoiceNumber] = 16
then the linked records would be
[DetailNumber] = 16-01
[DetailNumber] = 16-02
[DetailNumber] = 16-03
Doable?
Thanks,
ron