Ask Experts Questions for FREE Help!
Answer   ||    Advanced Search

Ask your question or search...
International Sites: Nederlandse experts vragen
User Name 
Password 
Join   Forgot password? 

Home > Computers & Technology > Programming > Databases > Access   »   MS Access - Long Term Varialbe?

Question
 
 
#1  
Old Jun 28, 2005, 06:54 AM
andy5179
New Member
andy5179 is offline
 
Join Date: Jun 2005
Posts: 5
andy5179 See this member's comment history on his/her Profile page.
MS Access - Long Term Varialbe?

I set up users in a database on a daily basis. There has been a recent change where I need to assign each of them to a number between 800 and 899, in sequential order. How can I do this, using VB or ACCESS, so that the variable isn't lost when the application is closed? In other words, if I add a user today and it's assigned 820, when I close the program, and reopen it tomorrow, I need it to pick up where it left off with 821 as the next assigned number.

Reply With Quote
 
     

Answers
 
 
Old Jun 28, 2005, 07:12 AM   #2  
Computer Expert and Renaissance Man
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 33,704
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
The assigned number should be stored as a field in a record. You can use the DMAX function to pull the last assigned number and increment by one.
  Reply With Quote
 
     
 
 
Old Jun 28, 2005, 07:14 AM   #3  
New Member
andy5179 is offline
 
Join Date: Jun 2005
Posts: 5
andy5179 See this member's comment history on his/her Profile page.
Can I just use a query to update the field? Its still a little fuzzy.
  Reply With Quote
 
     
 
 
Old Jun 28, 2005, 07:24 AM   #4  
New Member
andy5179 is offline
 
Join Date: Jun 2005
Posts: 5
andy5179 See this member's comment history on his/her Profile page.
But when the number gets to 899, I need the next one to reset at 800. How can I accomplish this?
  Reply With Quote
 
     
 
 
Old Jun 28, 2005, 11:48 AM   #5  
Computer Expert and Renaissance Man
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 33,704
ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.ScottGem See this member's comment history on his/her Profile page.
Pay to call ScottGem for advice ($.75/min)
Call ScottGem via Skype™
Why would you need to reset? What is the purpose of this number? it can be done, but I'd like to understand more about the application first.
  Reply With Quote
 
     

Your Answer
Email me when someone replies to my answer
Join Login



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Ask your question or search...



Similar Threads
long term effects of donating plasma
(8 replies)
How can I buy stocks for long term investing using credit card
(8 replies)
How to enter revolving charges vs long term debt
(4 replies)
How do you elaborate your success either short/long term?
(1 replies)
friends, to long term to ex's
(10 replies)

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Search this Thread

Advanced Search

Bookmarks





Copyright ©2003 - 2009, Ask Me Help Desk.
All times are GMT -8. The time now is 08:06 PM.