Hiya everybody,
I have a memo field in a table. In my code I do an insert with variables coming from the form. However, the system cuts the long string (memo). Here is what I have done (rather simple actually):
'first I do an insert
addDVDSql = "INSERT INTO DVD ( Title, Actor1, Actor2, Actor3, Actor4, [Rel Year], Director, Format, Category, Duration, Comment, Country ) VALUES ('" & titlestr & " ', '" & act1str & " ', '" & act2str & " ', '" & act3str & " ', '" & act4str & " ', '" & relstr & " ', '" & dirstr & " ', '" & formstr & " ', '" & catstr & " ', '" & durstr & " ', '" & comstr & " ', '" & countrystr & "')"
DoCmd.SetWarnings False
DoCmd.RunSQL addDVDSql
'as the insert with the long string storystr didn't work I thought I'd do an update afterwards
addDVDSql = ""
addDVDSql = "UPDATE DVD SET DVD.Story = '" & storystr & "' WHERE DVD.Title = '" & titlestr & " '"
DoCmd.RunSQL addDVDSql
It still cuts it. Any ideas? Thanks so much for your help.
Jane
I have a memo field in a table. In my code I do an insert with variables coming from the form. However, the system cuts the long string (memo). Here is what I have done (rather simple actually):
'first I do an insert
addDVDSql = "INSERT INTO DVD ( Title, Actor1, Actor2, Actor3, Actor4, [Rel Year], Director, Format, Category, Duration, Comment, Country ) VALUES ('" & titlestr & " ', '" & act1str & " ', '" & act2str & " ', '" & act3str & " ', '" & act4str & " ', '" & relstr & " ', '" & dirstr & " ', '" & formstr & " ', '" & catstr & " ', '" & durstr & " ', '" & comstr & " ', '" & countrystr & "')"
DoCmd.SetWarnings False
DoCmd.RunSQL addDVDSql
'as the insert with the long string storystr didn't work I thought I'd do an update afterwards
addDVDSql = ""
addDVDSql = "UPDATE DVD SET DVD.Story = '" & storystr & "' WHERE DVD.Title = '" & titlestr & " '"
DoCmd.RunSQL addDVDSql
It still cuts it. Any ideas? Thanks so much for your help.
Jane