Why won't the dlookup statement below work? I keep getting an invalid use of null, yet the value is in the table. Is my syntax wrong? I tried troubleshooting using other fields in the table and they worked. App_period is a text box. Any ideas? Thanks-
Dim rs As Recordset
Dim strinput As String
Dim strmsg As String
Dim varx As Variant
Set db = CurrentDb
Set rs = db.OpenRecordset("variables"
strmsg = "Enter a NEW application period."
strinput = inputbox(prompt:=strmsg, TITLE:="NEW APPLICATION PERIOD"
varx = DLookup("[app_period]", "variables", "[app_period] =" & strinput)
I'm trying to avoid duplicate entry of the same value into the table. [sig]<p>jgarnick<br><a href=mailto:jgarnick@aol.com>jgarnick@aol.com</a><br><a href= > </a><br> [/sig]
Dim rs As Recordset
Dim strinput As String
Dim strmsg As String
Dim varx As Variant
Set db = CurrentDb
Set rs = db.OpenRecordset("variables"
strmsg = "Enter a NEW application period."
strinput = inputbox(prompt:=strmsg, TITLE:="NEW APPLICATION PERIOD"
varx = DLookup("[app_period]", "variables", "[app_period] =" & strinput)
I'm trying to avoid duplicate entry of the same value into the table. [sig]<p>jgarnick<br><a href=mailto:jgarnick@aol.com>jgarnick@aol.com</a><br><a href= > </a><br> [/sig]