Results 1 to 8 of 8
  1. #1
    tinytree is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    28

    help autoincreasement


    how can i get a result from a table by query ,result has a new column include autoincreasement
    talbe data:
    testa b
    test2 c
    dldllld dd
    query result :
    1 testa
    2 test2
    3 dldllld

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Here's a link that should help.

  3. #3
    tinytree is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    28
    Quote Originally Posted by RuralGuy View Post
    Here's a link that should help.
    thank u , I am poor in english . the link displays use a public user define funtion in the sql.could u give me a link of all access inner fuction that can used in query.
    thank u a lot again.
    this answer let me konw that I can use public function in my sql.isn't it?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Most Public Function are available for use in a query. I'm not sure what you are asking.

  5. #5
    tinytree is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    28
    Thank you.
    Inner function are are available for use in a query ,for example max,min ,left,right,mid......and so on .but we can use ours defined function embed in a sql ,just like you give me the link.
    Thanks again.

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are you saying that you implimented the link I gave you and it did *not* work as advertised? I've used it and it works.

  7. #7
    tinytree is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2009
    Posts
    28
    Now,it works. thanks

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Great. How about using the link in my sig?

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums