G
Guest
Pardon me, I think I'll be babbling on this question...
I have a couple of fields, VendorChqNum and VendorChqDate, which are in a
1:M relationship with a field InvoiceNum. At design time I failed to catch
this, so I am presently filling up the Invoices table with multiple instances
of VendorChqNum and VendorChqDate, instead of from a lookup table.
When I'm entering the VendorChqDate field I'd like to:
1) check for null in the previous field, VendorChqNum
2) if not null, I'd like to do a query on the table and automatically fill
in the date, VendorChqDate, that is always associated with that VendorChqNum.
I am being thrown off by the knowledge that the query will return many rows
that match VendorChqNum, and that occasionally there may be a typo where the
date is wrong. However, I would be satisfied with a fill-in from the first
instance of that ChqNum...
Can anyone help with the code for this?
I have a couple of fields, VendorChqNum and VendorChqDate, which are in a
1:M relationship with a field InvoiceNum. At design time I failed to catch
this, so I am presently filling up the Invoices table with multiple instances
of VendorChqNum and VendorChqDate, instead of from a lookup table.
When I'm entering the VendorChqDate field I'd like to:
1) check for null in the previous field, VendorChqNum
2) if not null, I'd like to do a query on the table and automatically fill
in the date, VendorChqDate, that is always associated with that VendorChqNum.
I am being thrown off by the knowledge that the query will return many rows
that match VendorChqNum, and that occasionally there may be a typo where the
date is wrong. However, I would be satisfied with a fill-in from the first
instance of that ChqNum...
Can anyone help with the code for this?