Hi, I am working on my project and your HELP guys is really appreciated. I have a STUDENT NUMBER textbox, and what I want is when the form is open, IT WILL AUTOMATICALLY ASSIGN student number so that the registrar will not bother anymore to encode the student number...Is this possible?...Thanks
NewCoder_31 0 Newbie Poster
Recommended Answers
Jump to PostThis is actually a sql query to select max records from the database. For this you have to open a new recordset maybe. Better you can use
RS.Recordcount + 1
Jump to PostI would suggest you to use ADODB data control. Its more faster and prefect. anyway if you want to go with dao then here it is:
make a new data control for counting your records. put this query in your data controls "recordsource" property boxSELECT COUNT(*) …
Jump to Post@Jim: SELECT COUNT() is counting the total records in the table while SELECT Max(StudentNo) is getting the maximum value in the field "StudentNo" What If he use ST01-ST02-ST03 like this. then your query doesn't work.that's why i suggested to use count().
Jump to Post@NewCoder: I don't know about your other controls. If you want any suggestion from us. Just post the part of your code with a screenshot if there is any error coming up. We'll try to figure it out ! But firstly you have to try it urself. Surf google, you …
All 15 Replies
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
NewCoder_31 0 Newbie Poster
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Hamza Saleem 0 Newbie Poster
NewCoder_31 0 Newbie Poster
Hamza Saleem 0 Newbie Poster
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
NewCoder_31 0 Newbie Poster
Hamza Saleem 0 Newbie Poster
Hamza Saleem 0 Newbie Poster
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
NewCoder_31 0 Newbie Poster
Aslam Mansoor 2 Newbie Poster
NewCoder_31 0 Newbie Poster
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.