Ask Experts Questions for FREE Help !
Ask
    andy5179's Avatar
    andy5179 Posts: 5, Reputation: 1
    New Member
     
    #1

    Jun 28, 2005, 06:54 AM
    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.
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #2

    Jun 28, 2005, 07:12 AM
    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.
    andy5179's Avatar
    andy5179 Posts: 5, Reputation: 1
    New Member
     
    #3

    Jun 28, 2005, 07:14 AM
    Can I just use a query to update the field? Its still a little fuzzy.
    andy5179's Avatar
    andy5179 Posts: 5, Reputation: 1
    New Member
     
    #4

    Jun 28, 2005, 07:24 AM
    But when the number gets to 899, I need the next one to reset at 800. How can I accomplish this?
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #5

    Jun 28, 2005, 11:48 AM
    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.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

How can I buy stocks for long term investing using credit card [ 11 Answers ]

Hi; How can I buy stocks for long term investing using credit card? Note: I am not a US citizen.

Long term effects of donating plasma [ 7 Answers ]

I have been donating plasma since 1991 every two weeks straight, missing one full year in 1995. I have concerns and have been searching the web, but, have not found any clear straight forward answers regarding the "longterm effects on donating plasma" on a continual basis. (long term effects...

How to enter revolving charges vs long term debt [ 4 Answers ]

Hello - I am a novice bookkeeper in need of some advice. I am using a double-entry bookkeeping system. I enter monthly credit card charges (purchases and fees), which post against a long-term debt acct. Each month, the credit card company informs me of a minimum amount due on the overall credit...

How do you elaborate your success either short/long term? [ 1 Answers ]

This is not my story but someone who has been really part of me for a very long time which really inspire me. I met this guy right after college. He grew up pretty much on his own. Sometimes his grandparents took care of him sometimes his parents but never the time they really shared a real...

Friends, to long term to ex's [ 10 Answers ]

I love my ex to death, I want him to love me, but were not tougether anymore, I love him with my whole heart, and he's the only boy I've ever wanted to spend my life with, and now he's gone, and I know he's having just a hard time as I am.even when we were dating, he couldn't tell me he loved me....


View more questions Search