M
Mark Kubicki
I have this sub behind a command button on a form. Its purpose is to add a
set of records to one table [tblInstallationNotes] from a second table
[qryInstallationNotes ] that match a criteria....
- the filed [InstallationNote] in the 1st table, and the field [Options] in
the 2nd both have memo type data defs
the correct records append; however, they truncate (presumably at that
infamous 255 character limit)
I've found some stuff on the web about aggregation, de-duplicating and
formatting, but none of this seems to apply.
Any suggestions would be welcome; and as always, thanks in advance,
mark
Private Sub cmdRestoreBaseInstallatonNote_Click()
Call DoSQLRestoreBaseInstallationNotes(Me)
Me.Requery
End Sub
Public Sub DoSQLAddBaseInstallationNotes(frm As Access.Form)
Dim sSQL As String
sSQL = "INSERT INTO tblInstallationNotes(Type, PrintInstallationNote,
BaseInstallationNote, InstallationNote) " _
& "SELECT '" & frm.Type.Value & "', false, true, [Options] " _
& "from qryInstallationNotes " _
& "WHERE [Manufacturer] = '" & frm.Manufacturer.Value & "'" _
& " and [CatalogNumber] = '" & frm.CatalogNo.Value & "';"
DoCmd.SetWarnings False
DoCmd.RunSQL sSQL
DoCmd.SetWarnings True
End Sub
set of records to one table [tblInstallationNotes] from a second table
[qryInstallationNotes ] that match a criteria....
- the filed [InstallationNote] in the 1st table, and the field [Options] in
the 2nd both have memo type data defs
the correct records append; however, they truncate (presumably at that
infamous 255 character limit)
I've found some stuff on the web about aggregation, de-duplicating and
formatting, but none of this seems to apply.
Any suggestions would be welcome; and as always, thanks in advance,
mark
Private Sub cmdRestoreBaseInstallatonNote_Click()
Call DoSQLRestoreBaseInstallationNotes(Me)
Me.Requery
End Sub
Public Sub DoSQLAddBaseInstallationNotes(frm As Access.Form)
Dim sSQL As String
sSQL = "INSERT INTO tblInstallationNotes(Type, PrintInstallationNote,
BaseInstallationNote, InstallationNote) " _
& "SELECT '" & frm.Type.Value & "', false, true, [Options] " _
& "from qryInstallationNotes " _
& "WHERE [Manufacturer] = '" & frm.Manufacturer.Value & "'" _
& " and [CatalogNumber] = '" & frm.CatalogNo.Value & "';"
DoCmd.SetWarnings False
DoCmd.RunSQL sSQL
DoCmd.SetWarnings True
End Sub