Hello, I have the following code in the rowsource for a listbox:
I'ts telling the "undefined function "Environ" in expression.
I am trying to fill out a listbox with info that is specific to the computer running the database. The computer name is already saved in the table mentioned. So what I need is the WHERE conditionant to figure out what the name of the computer (through Environ?) is and then match it to the table to get the approppriate results.
What am I doing wrong?
mafhobb
Code:
SELECT [tblPrinterSelection].[ID], [tblPrinterSelection].[Doc], [tblPrinterSelection].[Device] FROM tblPrinterSelection WHERE tblPrinterSelection.Computer=Environ("computername");
I'ts telling the "undefined function "Environ" in expression.
I am trying to fill out a listbox with info that is specific to the computer running the database. The computer name is already saved in the table mentioned. So what I need is the WHERE conditionant to figure out what the name of the computer (through Environ?) is and then match it to the table to get the approppriate results.
What am I doing wrong?
mafhobb