M
Mark J Kubicki
I and adding to a table data which contains the following:
- a text field on the calling form
- the value for (2) checkboxes
- an hyperlink entry from another table, based on the value of (2) fields
on the form
my hunch is that the syntax I'm using for the (2) checkboxes is wrong (?)
could you take a quick look and correct the grammar (if that is indeed the
problem)
Public Sub DoSQL(frm As Access.Form)
Dim sSQL As String
sSQL = "INSERT INTO additionalPages (type, printCatalogSheet,
BaseCatalogSheet, CatalogSheetLink) " & _
"SELECT '" & frm.Type.Value & "', vbTrue, vbTrue,
CatalogSheetLink " & _
"from FixtureCatalogsPages " & _
"WHERE Manufacturer = '" & frm.Manufacturer.Value & _
"' and CatalogNumber = '" & frm.CatalogNo.Value & "';"
CurrentDb().Execute sSQL, dbFailOnError
End Sub
thanks in advance,
mark
- a text field on the calling form
- the value for (2) checkboxes
- an hyperlink entry from another table, based on the value of (2) fields
on the form
my hunch is that the syntax I'm using for the (2) checkboxes is wrong (?)
could you take a quick look and correct the grammar (if that is indeed the
problem)
Public Sub DoSQL(frm As Access.Form)
Dim sSQL As String
sSQL = "INSERT INTO additionalPages (type, printCatalogSheet,
BaseCatalogSheet, CatalogSheetLink) " & _
"SELECT '" & frm.Type.Value & "', vbTrue, vbTrue,
CatalogSheetLink " & _
"from FixtureCatalogsPages " & _
"WHERE Manufacturer = '" & frm.Manufacturer.Value & _
"' and CatalogNumber = '" & frm.CatalogNo.Value & "';"
CurrentDb().Execute sSQL, dbFailOnError
End Sub
thanks in advance,
mark