K
Katrina
I have fields named [P/N01], [P/N02].... to [P/N30]
What I would like to do it have access determine which
field is the first empty field and put some info into it.
I thought that a for loop would work well, so below is the
code I have so far, however it's not quite working. Any
suggestions?
countnum = 1
For countnum = 1 To 30
fldname = Format$(countnum, """P/N""00")
fllname = "[Forms]![0 P/N Summary]!" &
Format$(countnum, """P/N""00")
If fllname = Null Then
fllname = Format$(countnum, """test""00")
countnum = 31
Else
countnum = countnum + 1
End If
Next countnum
What I would like to do it have access determine which
field is the first empty field and put some info into it.
I thought that a for loop would work well, so below is the
code I have so far, however it's not quite working. Any
suggestions?
countnum = 1
For countnum = 1 To 30
fldname = Format$(countnum, """P/N""00")
fllname = "[Forms]![0 P/N Summary]!" &
Format$(countnum, """P/N""00")
If fllname = Null Then
fllname = Format$(countnum, """test""00")
countnum = 31
Else
countnum = countnum + 1
End If
Next countnum