Computing.Net > Forums > Programming > Vb6 ado

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Vb6 ado

Reply to Message Icon

Name: Mark Long
Date: August 8, 2004 at 16:02:08 Pacific
OS: Win 98
CPU/Ram: 300/512
Comment:

I have an Access 2k database with a VB6 front end, I have retrieved the data I require to each of the forms using ADO data control with Data Grid display.

Whilst creating the database I have set the primary key as an auto number, the trouble is I also require a field containing the current date and the two can't be combined for more than 1 record. I can change the autonumber to number but I need to add/remove records.

As all I have to do to add a record is enter it into the Data Grid, can I maintain this by creating my own autonumber that will allow dates?
How do I create my own autonumber without duplicates.

Thanking you

Regards

M



Sponsored Link
Ads by Google

Response Number 1
Name: Mark Long
Date: August 8, 2004 at 16:16:04 Pacific
Reply:

I located this:

http://www.simply-access.com/SimplyAccess_Tips-Manual-Auto-Number-Microsoft-Access.html

but has anybody any idea as to how I implement this with my ADO data control database connection?

Or is there a simpler way?

Regards

M


0
Reply to Message Icon

Related Posts

See More


VB question the classic java question



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Vb6 ado

How to connect VB6 database file wi www.computing.net/answers/programming/how-to-connect-vb6-database-file-wi/8780.html

How to connect VB6 with Access www.computing.net/answers/programming/how-to-connect-vb6-with-access/8818.html

VB6 ADO Win98 www.computing.net/answers/programming/vb6-ado-win98/2556.html