Hello all, I have one for ya
I have a water usage billing Access database. This database bills for water usage for 50 homes.
It basically contains Two (2) tables. The first table is for bill information and is indexed by Invoice Numbers (autonumber format). The second table is for property infomation (name, address, zip...ect.) and is indexed by PropertyID Numbers (autonumber format).
A Form is used to create a new invoice. The user is prompted to enter a PropertyID Number for each new invoice created. Once entered, the Invoice Info. and Property Info. are cross-referenced, through a Query.
ANYWAYS, what I am looking for is a way to have the Form pull-up the previous invoice that is associated with that property when creating a new invoice. The invoice it needs to pull-up will be exactly 50 invoices (rows) ahead of the current invoice being created because there are 50 properties. I know there is code to due this with a query (which I could a refresher on) but I need it to be bullet proof. (IE: when a new property/home is added to the database it needs to automatically work without having to update the Query or VB code.)
Any help would be greatly appreciated. Please let me know if you have any question or comments, I can offer pic's, code, or more explanation.

I have a water usage billing Access database. This database bills for water usage for 50 homes.
It basically contains Two (2) tables. The first table is for bill information and is indexed by Invoice Numbers (autonumber format). The second table is for property infomation (name, address, zip...ect.) and is indexed by PropertyID Numbers (autonumber format).
A Form is used to create a new invoice. The user is prompted to enter a PropertyID Number for each new invoice created. Once entered, the Invoice Info. and Property Info. are cross-referenced, through a Query.
ANYWAYS, what I am looking for is a way to have the Form pull-up the previous invoice that is associated with that property when creating a new invoice. The invoice it needs to pull-up will be exactly 50 invoices (rows) ahead of the current invoice being created because there are 50 properties. I know there is code to due this with a query (which I could a refresher on) but I need it to be bullet proof. (IE: when a new property/home is added to the database it needs to automatically work without having to update the Query or VB code.)
Any help would be greatly appreciated. Please let me know if you have any question or comments, I can offer pic's, code, or more explanation.
