Save data to database with VB6

Save a few textboxes on different forms to access database

Page 1 of 1

2 Replies - 4950 Views - Last Post: 05 August 2009 - 06:30 PM Rate Topic: -----

#1 james-c-h  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-August 09

Save data to database with VB6

Posted 05 August 2009 - 02:28 PM

I need to make a program in visual basic that when the user presses submit on form2 it saves all the following info from the textboxes to a table in the database.
UserID (on form1),
Reelno (on form2),
Weight (on form2)
And a dropdown menu on form 2 called type
If anyone has any code that would help me pleases reply.

EDIT: Title edited to be more descriptive

PsychoCoder :)

Is This A Good Question/Topic? 0
  • +

Replies To: Save data to database with VB6

#2 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1633
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Save data to database with VB6

Posted 05 August 2009 - 02:33 PM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 Louisda16th  Icon User is offline

  • dream.in.assembly.code
  • member icon

Reputation: 15
  • View blog
  • Posts: 1,967
  • Joined: 03-August 06

Re: Save data to database with VB6

Posted 05 August 2009 - 06:30 PM

If you are totally clueless, I suggest studying Data Access in VB6. Start from using the simple DataControl and then Move on to the ADO Data Control. Finally You can explore the more flexible ADODB object. You'll find all the information you need here:
http://msdn.microsof...175(VS.60).aspx

Once you've understood the things I mentioned, solving your problem is not very hard. In fact, even the simple data control is enough if you are using an access database.
Hope this helps you start off :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1