I have 3 combo boxes 3 text boxes on
my VB6 FORM. i want to save the
details displayed on the combo boxes
and text boxes to my access database.
can any1 pliz help me out with the
codes
the save code you are looking for is the addnew code inthe example given you do not save to a database you put stuff in it, you add data to the database.
If you donot have a database and need to make one that is a different matter.
If you have one but want to save you information to a new table within it use a variation of the example.
if you are still stuck then we will need musch more information about what you think you need to do, whith what and why and how you have tried so far.
Yeah i have a database and want to save the data in a table that is inside the database. I used this code(ADODC1.RECORDSET.UPDATE) as the save code but when i clicked the save button nothing was saved. i guess the problem lies within the code!
If you are adding a new record you have to first call the AddNew method of your recordset then you assign values to the fields then you call the update method to update the database.
btw The correct term is "Code" not codes. It does not matter if your code is one line or 1 thousand lines one file or several files it is still Code.