battenberg
Burning candles both ends
- Local time
- Today, 21:21
- Joined
- Sep 25, 2006
- Messages
- 118
Any tips on the following?
against every customer in my DB I have a notes field in the table.
I want to be able to update the [notes] field with a string concatenation based on multiple entries from a form.
my code (simplyfied) is along these lines.
however I get the error 'Invalid use of NULL' if the original [notes] is empty to start with.
I have tried to write an if routene for (if strNotes = "") etc... but had no luck
can anyone point me towards the correct way of handling NULL given this scenario.
against every customer in my DB I have a notes field in the table.
I want to be able to update the [notes] field with a string concatenation based on multiple entries from a form.
my code (simplyfied) is along these lines.
Code:
dim strNotes as String
dim strConcatenation as string
' dim a whole bunch of strings
' this bit collects a whole bunch of strings
'that will become the string concatenation (not shown)
Notes.setfocus
strNotes = [Notes]
strNotes = strNotes & " " & strConcatenation
[Notes] = strNotes
I have tried to write an if routene for (if strNotes = "") etc... but had no luck
can anyone point me towards the correct way of handling NULL given this scenario.
Last edited: