Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

NEWBIE insert data rather than update in db

 
   Database Help (Home) -> Visual Basic RSS
Next:  Coppermine & GD - using bundled php-4.3.8..  
Author Message
Mike & Dyan

External


Since: Feb 12, 2005
Posts: 1



(Msg. 1) Posted: Sat Feb 12, 2005 8:21 pm
Post subject: NEWBIE insert data rather than update in db
Archived from groups: comp>lang>basic>visual>database (more info?)

I have an app for tracking mileage on company vehicles. On the first form
you select a vehicle(via combobox getting vehicle names from database) and
enter the appropriate info. Then I need to export that data back to the
database. The ? is how do I update each vehicles info without it replacing
any prior info. I want the table to look like this after I export the data.

field1 field2 field3 field4 field5
Vehicle name Date Miles Gallons of Gas MPG
1 1-1-05 100 10 10
1-8-05 200 20 10
2 1-1-05 100 10 10

 >> Stay informed about: NEWBIE insert data rather than update in db 
Back to top
Login to vote
Veign

External


Since: Apr 22, 2004
Posts: 13



(Msg. 2) Posted: Sun Feb 13, 2005 12:40 pm
Post subject: Re: NEWBIE insert data rather than update in db [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

For a reference guide on SQL statements see the SQL Reference Guide:
<a rel="nofollow" style='text-decoration: none;' href="http://www.veign.com/vrc_app_main.asp" target="_blank">http://www.veign.com/vrc_app_main.asp</a>

Also, You asked a questions as a newbie so I'm not sure if you are familiar
with ADO. Are you?

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
<a rel="nofollow" style='text-decoration: none;' href="http://www.veign.com/vrc_main.asp" target="_blank">http://www.veign.com/vrc_main.asp</a>
--

"Mike & Dyan" wrote in message

 > I have an app for tracking mileage on company vehicles. On the first form
 > you select a vehicle(via combobox getting vehicle names from database) and
 > enter the appropriate info. Then I need to export that data back to the
 > database. The ? is how do I update each vehicles info without it replacing
 > any prior info. I want the table to look like this after I export the
data.
 >
 > field1 field2 field3 field4 field5
 > Vehicle name Date Miles Gallons of Gas MPG
 > 1 1-1-05 100 10 10
 > 1-8-05 200 20 10
 > 2 1-1-05 100 10 10
 >
 >

 >> Stay informed about: NEWBIE insert data rather than update in db 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
INSERT SQL query help with VB please? - Hello, I am trying to run an SQL query on a database through VB6 which is supposed to add data to a table called tblNames. There are 4 text fields on the form where data is added. here's the code. Dim i As Integer Set db1 = New ADODB.Connection..

update query - I have created an update query in my dataenvironment to change the date in the bound table to the sys date. However, the query will not accept '=Date' in the new value box. Does anyone know the correct function. The help gives it as 'Date' Ian

Can I Update entire record in SQL ? - Heya, I am working on making a SQL database an exact mirror of a local Access database. I check the .mdb database every few minutes for new entries, if there are new entries, I retrieve them and write them to an exact replica table in SQL. This all work...

Package &amp; Deployment wizard: Update a database - Dear, I have developed a standalone VB6.0 application which uses an access database. I deployed this application with the "Package & Deployment"-wizard from Visual Basic, and it works fine. Due to some new requirements I had to add an ext...

Retrieving data from a MSHFlexGrid - I've managed to set up an MSHFlexGrid and store it with data from an Access DB successfully. What I'm trying to do is retrieve data from a selected row but I'm not sure what methods I need to call to get this data. Can anyone tell me how to do this o...
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]