Microsoft Access geeks :D

Discussion in 'Technology' started by Chris Fee, Jun 15, 2004.

Users Viewing Thread (Users: 0, Guests: 0)

  1. Chris Fee

    Chris Fee Registered User

    Joined:
    May 8, 2002
    Messages:
    4,379
    Likes Received:
    0
    Location:
    Newcastle
    Microsoft Access geeks :D

    right, im doin a database for my exam. this has to have an automatic counter on, so when someone opens up the database it adds 1 onto the counter.

    i havent a clue how to do it, iv tried doin stuff but it aint workin

    anyone help please :( :)
  2. 1615634792921.png
  3. Chris Fee

    Chris Fee Registered User

    Joined:
    May 8, 2002
    Messages:
    4,379
    Likes Received:
    0
    Location:
    Newcastle
    bump bump :D
  4. Chris Fee

    Chris Fee Registered User

    Joined:
    May 8, 2002
    Messages:
    4,379
    Likes Received:
    0
    Location:
    Newcastle
    yeah but is some macro not created?

    i done what u sed it just splits up the form, but least its getting somewhere, it must be on the right lines
  5. Chris Fee

    Chris Fee Registered User

    Joined:
    May 8, 2002
    Messages:
    4,379
    Likes Received:
    0
    Location:
    Newcastle
    i give up, fook it lol

    thanx anyways
  6. DoctorMick

    DoctorMick Registered User

    Joined:
    Apr 2, 2002
    Messages:
    3,828
    Likes Received:
    0
    Location:
    Sunderland :)
    This shudn't be hard to do, easiest way would be to have a table with the counter as the field.

    If you still need it this should work (well, it does in Access XP):

    1) Create a new table called counter
    2) Add a field to the table called counterfield
    3) Create a new macro in the database
    4) Set the action to be RunSQL from the drop down
    5) Set the SQL Statement in to be "UPDATE counter SET counterfield = counterfield + 1"
    6) Save the macro with the name autoexec

    Now, whenever anyone loads the database that macro will automatically run and increment the counter.

    :D
  7. Chris Fee

    Chris Fee Registered User

    Joined:
    May 8, 2002
    Messages:
    4,379
    Likes Received:
    0
    Location:
    Newcastle
    its worked in a way

    thanx very much

    :D

Share This Page