Can someone explain this?

Rican

Registered User.
Local time
Today, 21:23
Joined
Mar 7, 2003
Messages
17
Hello all, I have a DB that's giving me errors. The first line that shows with an error is: CallerID = Nz(DLookup("[useridunclass]", "[tblusers", "[useridunclass] = getuser() "))

Can someone please explain what this is? Thank you.
I can't find the 'useridunclass' anywhere in the modules or tables... help!!
 
CallerID = Nz(DLookup("[useridunclass]", "[tblusers", "[useridunclass] ='" & getuser() & "'"))

???
ken
 
Shouldn't it just be:
CallerID = getuser()
 
Hum... Good point...

Unless, maybe, the user isn't in the table?
 
Well, if I refer to this:
Rican said:
I can't find the 'useridunclass' anywhere in the modules or tables
NONE OF the users are in the table. :rolleyes:
 
'I can't find the 'useridunclass' anywhere in the modules or tables'

Sorry - overlooked that..

What does than mean?
 
Rican, the english translation for

CallerID = Nz(DLookup("[useridunclass]", "[tblusers]", "[useridunclass] = getuser() "))

is

CallerID = All the names(useridunclass) from the table "Users"(tblUsers) where the name is the same as the one you get from the "getuser" function.

So, you should have a field named "useridunclass" in the table "tblusers".
Otherwise, that code is of no use at all.

"Nz" (Null --> Zero) means that if there is no name found, you want the number "0" to be written instead of a blank.

Hope it helps you!
 
'I can't find the 'useridunclass' anywhere in the modules or tables'

I suspect there's more to this problem than a simple syntax error...

ken
 

Users who are viewing this thread

Back
Top Bottom