PC Review


Reply
Thread Tools Rate Thread

Adding Multiple Records; No External Data Source - Query?

 
 
DMcDaniel
Guest
Posts: n/a
 
      28th Apr 2009
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 )



 
Reply With Quote
 
 
 
 
Michael
Guest
Posts: n/a
 
      28th Apr 2009

"DMcDaniel" <(E-Mail Removed)> wrote in message
news:EAA999CA-74D5-4671-A1B7-(E-Mail Removed)...
> 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 )
>
>
>


 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      28th Apr 2009
On Mon, 27 Apr 2009 17:23:01 -0700, DMcDaniel
<(E-Mail Removed)> wrote:

>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.
--

John W. Vinson [MVP]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change external data source for multiple worksheets =?Utf-8?B?UGl2b3QgVGFibGVz?= Microsoft Excel Misc 4 27th Jul 2007 01:50 PM
adding records if record source is query =?Utf-8?B?U2FuZHlS?= Microsoft Access Forms 6 1st May 2006 06:15 PM
Linking to query in external data source on sql server =?Utf-8?B?SmFja3M=?= Microsoft Access External Data 2 27th Oct 2004 06:14 PM
External data query - need to use SELECT * (ALL RECORDS) Vlad Microsoft Excel Programming 3 19th Dec 2003 10:41 AM
Adding multiple source data to chart Mark Microsoft Excel Charting 1 15th Nov 2003 12:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:50 AM.