Forum Moderators: open
Is there a way to check if Recipe("RName") is defined without getting an error?
FYI: "Recipe" is from my access query when I am editing a record and does not exsist when creating a new record.
thanks
!
If Recipe.BOF and Recipe.EOF = True Then
rvar = ""
Else
rvar = Recipe("RName")
End If
<INPUT Type=Text" Name="RName" Value="<% =rvar %>" size="25">
I'm guessing that you'll have a hidden tag somewhere in the form that tells the script you're posting to whether to UPDATE or INSERT?
Hope this helps