M
Mark Kubicki
on a form with its data source: Notes, I have a command buttom with the
following code:
Private Sub cmdAddStandardProjectNotes_Click()
Call DoSQLAddProjectNotes(Me) 'see code below
Me.Requery
Me.Refresh
End Sub
----
- i have 2 problems:
this SQL code doesn't add anything
Public Sub DoSQLAddProjectNotes(frm As Access.Form)
Dim sSQL As String
sSQL = "INSERT INTO Notes(vbTrue, null, Options) " & _
"from optNotes " & _
"WHERE OptionRequired = vbTrue ;"
DoCmd.SetWarnings False
DoCmd.RunSQL sSQL
DoCmd.SetWarnings True
End Sub
- table Notes has 3 feilds with data types: yes/no, number, memo
- table optNotes has 3 fields with data types: memo, number, yes/no (which I
now note is a different order than the first table; however, the only value
being inserted from the 2nd into the 1st is the field with the "memo"
datatype which is named "Options" in both tables)
- OptionRequired is a yes/no field in the optNotes table
following code:
Private Sub cmdAddStandardProjectNotes_Click()
Call DoSQLAddProjectNotes(Me) 'see code below
Me.Requery
Me.Refresh
End Sub
----
- i have 2 problems:
this SQL code doesn't add anything
Public Sub DoSQLAddProjectNotes(frm As Access.Form)
Dim sSQL As String
sSQL = "INSERT INTO Notes(vbTrue, null, Options) " & _
"from optNotes " & _
"WHERE OptionRequired = vbTrue ;"
DoCmd.SetWarnings False
DoCmd.RunSQL sSQL
DoCmd.SetWarnings True
End Sub
- table Notes has 3 feilds with data types: yes/no, number, memo
- table optNotes has 3 fields with data types: memo, number, yes/no (which I
now note is a different order than the first table; however, the only value
being inserted from the 2nd into the 1st is the field with the "memo"
datatype which is named "Options" in both tables)
- OptionRequired is a yes/no field in the optNotes table