Autonumber generation in VB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bidipta Samder
    New Member
    • Jul 2011
    • 2

    Autonumber generation in VB

    Sir/madam,
    I am doing a project on admission procedure using VB6. I am facing certain problems regarding that.....

    1) Problem that i am facing is to generate alphanumeric auto numbers in two columns(Rollno. & Reg no.) in same table, in access.
  • Alex ERS
    New Member
    • Jul 2011
    • 1

    #2
    You can generate numbers in a VB method and then pass them to DB via INSERT or UPDATE SQL query.

    The simplest way is to create a string constant or an array of chars which contains allowed symbols (0-9, A-Z for example), and to take one by one element by random indexes.

    Comment

    Working...