Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

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

Answer this Question
Ask about Access
 
Question Tools Search this Question Display Modes
Question
 
 
#1  
Old Jun 28, 2005, 05: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, 06:12 AM   #2  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 20,433
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, 06:14 AM   #3  
andy5179
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, 06:24 AM   #4  
andy5179
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, 10:48 AM   #5  
ScottGem
Computer Expert
ScottGem is offline
 
ScottGem's Avatar
 
Join Date: Jan 2003
Location: LI, NY - USA
Posts: 20,433
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
 
     
Answer this Question
Ask about Access


Question Tools Search this Question
Search this Question:

Advanced Search
Display Modes

 
Similar Sponsors

Similar Questions
Question Asker Topic Answers Last Post
long term effects of donating plasma oldschool Medical Conditions & Diseases 8 Jan 6, 2008 01:59 PM
How can I buy stocks for long term investing using credit card Salehd Investing 8 Jan 12, 2007 10:46 PM
How to enter revolving charges vs long term debt garyr125 Accounting 4 Sep 28, 2006 07:29 AM
How do you elaborate your success either short/long term? mysticque Other Member Discussions 1 Sep 15, 2006 06:14 AM
friends, to long term to ex's lil miss vixen Relationships 10 Aug 1, 2005 08:31 AM




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 12:20 AM.

Content Relevant URLs by vBSEO 3.0.0 RC6 © 2006, Crawlability, Inc.