Hi
I want to make an if statement that looks for a matching value in a table´s column.
Table name: table1
column: name
I have a value being held in a variable called "username" (dont know if im explaining this correctly)
If i do a code
i do get the expected value i want... now i want to look if that value is stored in a table in a column.
from what i have read i should do a DLookup line.... but i dont know how to write that.
Anyone able to help me?
I want to make an if statement that looks for a matching value in a table´s column.
Table name: table1
column: name
I have a value being held in a variable called "username" (dont know if im explaining this correctly)
If i do a code
Code:
msgbox username
Code:
If table1,column=name = username then
msgbox "value found in table"
else
msgbox "value not found in table"
end if
from what i have read i should do a DLookup line.... but i dont know how to write that.
Anyone able to help me?