A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Assigning Value to a Range of Numbers



 
 
Thread Tools Display Modes
  #1  
Old August 7th, 2009, 12:56 AM posted to microsoft.public.access.gettingstarted
jrs
external usenet poster
 
Posts: 4
Default Assigning Value to a Range of Numbers

Hello All. I don't use Access as much as the other office products but I'm
creating a database table. We have a pad of invoices (25 in a pad). When I
give a pad to a user, I would like to be able to create a table that says 500
- 525 assigned to User 1. So in that table, I would like to have 25 records
(i.e. 500, 501, 502, etc) and in field 2 - "User 1" is displayed all the way
down to 525. I would like to have a form where the user enters 526 - then
"user 2" and the table populates with 25 more records from 526, 527 and so on
with User 2 in the second field. Can this be done? Thanks in advance.
  #2  
Old August 7th, 2009, 04:29 AM posted to microsoft.public.access.gettingstarted
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Assigning Value to a Range of Numbers

Create table named CountNumber with field CountNUM containing numbers from 0
(zero) through say 100.
Substitute your table and field names in query below --
INSERT INTO YourTable ( INVOICE, USER )
SELECT [Enter starting number] + [CountNUM] AS INVOICE, [Enter user] AS USER
FROM CountNumber
WHERE CountNUM [Enter quanity of invoices] + [Enter starting number];

--
Build a little, test a little.


"jrs" wrote:

Hello All. I don't use Access as much as the other office products but I'm
creating a database table. We have a pad of invoices (25 in a pad). When I
give a pad to a user, I would like to be able to create a table that says 500
- 525 assigned to User 1. So in that table, I would like to have 25 records
(i.e. 500, 501, 502, etc) and in field 2 - "User 1" is displayed all the way
down to 525. I would like to have a form where the user enters 526 - then
"user 2" and the table populates with 25 more records from 526, 527 and so on
with User 2 in the second field. Can this be done? Thanks in advance.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.