Link to home
Start Free TrialLog in
Avatar of jazzanova
jazzanovaFlag for Afghanistan

asked on

VB abd Databases

Hi,

I need to know the command that will allow me to deposit the contents of 2 text fields into 2 corrosponding fields in an Access database.
Avatar of JHausmann
JHausmann

Set db = Workspaces(0).OpenDatabase("c:\database\location")
sSQL = "Update table set field1='" & trim(form.text1.text) & "', field2=" & clng(form.text2.text) & " where condition"

db.Execute sSQL
ASKER CERTIFIED SOLUTION
Avatar of AndySulz
AndySulz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
make text3 & text 4.visible = false