Steveanderson
Registered User.
- Local time
- Today, 06:14
- Joined
- May 27, 2010
- Messages
- 16
I'm using Access 2003 and I'm trying to configure a combobox to add the combobox value to a table named listeanalyse
What is the proper synthax to add the variable A to the SQL string ?
Here is the code.
Private Sub Combobox1_Click()
Dim A As String, SqlTxt As String
A = Combobox1.Value
SqlTxt = "INSERT INTO ListeAnalyse (Analyse) VALUES ('"&A&"') ;"
DoCmd.RunSQL SqlTxt
End Sub
Thanks
What is the proper synthax to add the variable A to the SQL string ?
Here is the code.
Private Sub Combobox1_Click()
Dim A As String, SqlTxt As String
A = Combobox1.Value
SqlTxt = "INSERT INTO ListeAnalyse (Analyse) VALUES ('"&A&"') ;"
DoCmd.RunSQL SqlTxt
End Sub
Thanks