Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting

Post new topic   Reply to topic
Maybe you could help me with this
View previous topic :: View next topic  
Author Message
Retarded_Noob
Newbie


Joined: 20 Jul 2005
Posts: 1

PostPosted: Jul 20th, 2005 12:23 AM    Post subject: Maybe you could help me with this Reply with quote

hi guys i am a beginner
i wish someof you may help me with this.....
thanks

------------------------

we all know that how AutoNumber and AutoIncrement works in Access and MySql
It automatically gives a value to the new added record

my question is..

how do we do that without using the AutoNumber in Microsoft Access

to be more specific..

====================
my table name = Products
the index field = RecordID(set as number istead of autonumber)
recordset name = Rs
textbox = txtRecID
=================

when i click button cmdNew
i want the txtRecID to be (the last records'record id)+1


so..how is the code going to be
_________________
Sorry for my stupidity if it bothers you Smile
Back to top
View user's profile Send private message MSN Messenger
blackhd
Newbie


Joined: 23 Jul 2005
Posts: 5

PostPosted: Jul 23rd, 2005 01:11 PM    Post subject: Reply with quote

use max(recid)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic