H
Hidge
I have a database that tracks mileage driven in each State. Each piece
of equipment is in its own table. The reason for this is that the user
inputs the date, state & exiting odometer reading into a form and the
source query for the form calculates the distance based on the previous
record's odometer reading. I tried this with one table containing all
of the equipment, but my mileage did not calculate correctly. IF THERE
IS A BETTER WAY TO DO THAT I'M OPEN TO SUGGESTION - BUT THIS IS NOT MY
MAIN QUESTION.
I am trying to automate the addition of new equipment using a form and
macro that copies a master equipment table "~EQ" and saves the table
based on the value entered in the new equipment form. Then it copies
the master query "~qry_EQ" used for the mileage input form. In other
words, for equipment #123 the macro will create a table "123" and a
query "qry_123" that should use table "123." I have gotten as far as
creating the new query & opening it in SQL View & I want to find all
instances of ~EQ in the table & replace it with "123" (or the value
entered in the EQID field of the new equipment form). I am stuck.
How can I replace the table in the query? Or - how can the person who
will be inputting that data & adding new equipment do this with no
knowledge of Access 2003?
I've tried building a Replace expression - no luck -missing operands or
operators, etc.
Thanks in advance for any help.
of equipment is in its own table. The reason for this is that the user
inputs the date, state & exiting odometer reading into a form and the
source query for the form calculates the distance based on the previous
record's odometer reading. I tried this with one table containing all
of the equipment, but my mileage did not calculate correctly. IF THERE
IS A BETTER WAY TO DO THAT I'M OPEN TO SUGGESTION - BUT THIS IS NOT MY
MAIN QUESTION.
I am trying to automate the addition of new equipment using a form and
macro that copies a master equipment table "~EQ" and saves the table
based on the value entered in the new equipment form. Then it copies
the master query "~qry_EQ" used for the mileage input form. In other
words, for equipment #123 the macro will create a table "123" and a
query "qry_123" that should use table "123." I have gotten as far as
creating the new query & opening it in SQL View & I want to find all
instances of ~EQ in the table & replace it with "123" (or the value
entered in the EQID field of the new equipment form). I am stuck.
How can I replace the table in the query? Or - how can the person who
will be inputting that data & adding new equipment do this with no
knowledge of Access 2003?
I've tried building a Replace expression - no luck -missing operands or
operators, etc.
Thanks in advance for any help.