1
123
Thank you for your help and answer
I have this SQL Code and I want YOU to (modify this code) to help me
What is my problem my problem is I want use the value of text0 in replace
with value of SQL statement….
More information: INSERT INTO You Should Put Actual Value “b” “C” etc Put
what I want is using The value of the text box it self
---------------------------------------------------------------------
Private Sub Command2_Click()
Dim sql As String
Dim newcolor As Variant
newcolor = Me.Text0.Value
sql = "INSERT INTO tblcolor " & "(color) VALUES " & " (newcolor);"
DoCmd.RunSQL sql
I have this SQL Code and I want YOU to (modify this code) to help me
What is my problem my problem is I want use the value of text0 in replace
with value of SQL statement….
More information: INSERT INTO You Should Put Actual Value “b” “C” etc Put
what I want is using The value of the text box it self
---------------------------------------------------------------------
Private Sub Command2_Click()
Dim sql As String
Dim newcolor As Variant
newcolor = Me.Text0.Value
sql = "INSERT INTO tblcolor " & "(color) VALUES " & " (newcolor);"
DoCmd.RunSQL sql