Adding Multiple Records; No External Data Source - Query?

D

DMcDaniel

Obstacle:
I've recieved a large shipment of gift certificates, and would now like to
'import' them into a table. Say I've recieved a bill of lading suggesting
we've recieved a shipment of serial #1000 to #5000

Anybody have any suggestions, or starting points, as to how I can import (or
update?/append?) these records into the table, by creating some sort of
'starting ID' and 'ending ID' query, where the table will then automaticially
have the new values added?

greatly appreciated, DMcDaniel (fellow glutton-for-good-punishment, Access
wannabe-guru :) )
 
M

Michael

DMcDaniel said:
Obstacle:
I've recieved a large shipment of gift certificates, and would now like to
'import' them into a table. Say I've recieved a bill of lading suggesting
we've recieved a shipment of serial #1000 to #5000

Anybody have any suggestions, or starting points, as to how I can import
(or
update?/append?) these records into the table, by creating some sort of
'starting ID' and 'ending ID' query, where the table will then
automaticially
have the new values added?

greatly appreciated, DMcDaniel (fellow glutton-for-good-punishment,
Access
wannabe-guru :) )
 
J

John W. Vinson

Obstacle:
I've recieved a large shipment of gift certificates, and would now like to
'import' them into a table. Say I've recieved a bill of lading suggesting
we've recieved a shipment of serial #1000 to #5000

Anybody have any suggestions, or starting points, as to how I can import (or
update?/append?) these records into the table, by creating some sort of
'starting ID' and 'ending ID' query, where the table will then automaticially
have the new values added?

greatly appreciated, DMcDaniel (fellow glutton-for-good-punishment, Access
wannabe-guru :) )

If you really NEED this... i.e. if there is something other than the serial
number which will (at some point) differentiate the records... you can do this
easily with the help of a little auxiliary table. I'll routinely add a table
named Nums, with one long integer primary key field N; this can be manually
filled using Excel. Use the Excel Insert... Fill... Series feature to put
values from 0 through 10000 (or 65536) in Column A; import this spreadsheet
into the table Num. You only need to do this the first time you add it, just
import it from another database thereafter.

You can create an Append query such as

INSERT INTO Certs
SELECT [N] + [Forms]![SomeForm]![txtStart]
FROM Nums
WHERE [N] < [Forms]![SomeForm]![txtHowMany];

and run it from a form with unbound textboxes to solicit the desired range of
values.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top