A1VBCode Forums

Database help


http://www.a1vbcode.com/vbforums/Topic27385.aspx

By sony112 - 4/6/2009

iv just done a cricket scoring system but the output is to a txt file - i want to put some of the details to a database , meaning remove the tx file and have a db instead.

the programm is fully functional but needs a database - can any1 help me - i tried odbc and sql but doesnt seem to work the way i want it to . -i can send my exe file or any of the program files ..

any more details needed, i can post .

thanks

By vb5prgrmr - 4/24/2009

Create you database in access. Then use the dataform wizard to make you an example on how to connect to it.

Start new standard exe project.

In VB's IDE, goto VB's menu Add-Ins>Add In Manager.

Select/highlight VB 6 Data Form Wizard.

In lower right corner where frame has caption of "Load Behavior" put check in box next to Loaded/Unloaded.

Click OK

GoTo Add-Ins>Data Form Wizard.

Follow instruction and when it comes to form type and the options of ADODC, Code, or Class, I would suggest that you run this wizard as many times as needed to select each form type and each option so that you have an example from every possible combination.

Save this project for reference.

Good Luck