D
Dave
I try to assign a string variable the following value:
'Load subform recordset
Dim sSQL As String
sSQL = "EssayNote.NoteID, EssayNote.EssayID, " _
& "EssayNote.EssayNote, Note.NoteShort, " _
& "EssayNote.Suppress, EssayNote.CreateDate, " _
& "EssayNote.NoteRankID " _
& "FROM [Note] INNER JOIN EssayNote ON Note.NoteID=EssayNote.NoteID " _
& "WHERE EssayNote.EssayID=" & txtEssayID & " AND EssayNote.Suppress=No
" _
& "ORDER BY createdate DESC, noteid;"
Forms![F_ESSAY]![F_ESSAY_SUB].Form.RecordSource = sSQL
Forms![F_ESSAY]![F_ESSAY_SUB].Form.Requery
This code produces the following error:
ERROR: F_ESSAY.Form_Load
1/31/2005 8:37:48 AM
Err.Number: 3163
Err.Description: The field is too small to accept the amount of data you
attempted to add. Try inserting or pasting less data.
This is what I have in my sSQL variable when I check the locals window
"EssayNote.NoteID, EssayNote.EssayID, EssayNote.EssayNote, Note.NoteShort,
EssayNote.Suppress, EssayNote.CreateDate, EssayNote.NoteRankID FROM [Note]
INNER JOIN EssayNote ON Note.NoteID=EssayNote.NoteID WHERE
EssayNote.EssayID=41 AND EssayNote.Suppres"
Counting the quotes this is 255 characters.
What is going on? A string should not be limited to 255 characters?
'Load subform recordset
Dim sSQL As String
sSQL = "EssayNote.NoteID, EssayNote.EssayID, " _
& "EssayNote.EssayNote, Note.NoteShort, " _
& "EssayNote.Suppress, EssayNote.CreateDate, " _
& "EssayNote.NoteRankID " _
& "FROM [Note] INNER JOIN EssayNote ON Note.NoteID=EssayNote.NoteID " _
& "WHERE EssayNote.EssayID=" & txtEssayID & " AND EssayNote.Suppress=No
" _
& "ORDER BY createdate DESC, noteid;"
Forms![F_ESSAY]![F_ESSAY_SUB].Form.RecordSource = sSQL
Forms![F_ESSAY]![F_ESSAY_SUB].Form.Requery
This code produces the following error:
ERROR: F_ESSAY.Form_Load
1/31/2005 8:37:48 AM
Err.Number: 3163
Err.Description: The field is too small to accept the amount of data you
attempted to add. Try inserting or pasting less data.
This is what I have in my sSQL variable when I check the locals window
"EssayNote.NoteID, EssayNote.EssayID, EssayNote.EssayNote, Note.NoteShort,
EssayNote.Suppress, EssayNote.CreateDate, EssayNote.NoteRankID FROM [Note]
INNER JOIN EssayNote ON Note.NoteID=EssayNote.NoteID WHERE
EssayNote.EssayID=41 AND EssayNote.Suppres"
Counting the quotes this is 255 characters.
What is going on? A string should not be limited to 255 characters?