MattioMatt
Registered User.
- Local time
- Today, 12:36
- Joined
- Apr 25, 2017
- Messages
- 99
Hello,
I'm trying to use a Dlookup in a query. There is a reason for this (despite me knowing this is not the right way of doing it), but due to the data being premature and working through issues I'm currently basing my queries on imported data from excel. I currently do not have relationships between my tables, as for now I have just imported the data from Excel sheets and will start to build the relationships at a later stage as the priority has been getting some/limited reporting in place.
I want to look up the status in another table seperate from the table I'm using in my query using the ID's in both tables as the lookup. However each time I try to do so I'm given the following error. The expression you entered as a query parameter produced this error: 'Product Security Dashboard cannot find the name 'Qry_Data_Export.APID' you entered in the expression'
Here's the expression I'm using:
I'm currently creating a query called Qry_Data_Export, within that query I'm pulling data from one table 'tblInventory'. I'd like to look up the status within another table called 'tblAssessments'. I used the below but as described above it is giving me an information warning only and I can by pass by pressing ok and then can view the output of the query to which Expr1 is blank.
If I change the expression to the below it works fine, albeit it populates all the corrects with the status from the one record.
I'm trying to use a Dlookup in a query. There is a reason for this (despite me knowing this is not the right way of doing it), but due to the data being premature and working through issues I'm currently basing my queries on imported data from excel. I currently do not have relationships between my tables, as for now I have just imported the data from Excel sheets and will start to build the relationships at a later stage as the priority has been getting some/limited reporting in place.
I want to look up the status in another table seperate from the table I'm using in my query using the ID's in both tables as the lookup. However each time I try to do so I'm given the following error. The expression you entered as a query parameter produced this error: 'Product Security Dashboard cannot find the name 'Qry_Data_Export.APID' you entered in the expression'
Here's the expression I'm using:
Code:
Expr1: DLookUp("[tblAssessments].[SummaryStatus]","[tblAssessments]","[tblAssessments].[APID]=[Qry_Data_Export].[APID]")
I'm currently creating a query called Qry_Data_Export, within that query I'm pulling data from one table 'tblInventory'. I'd like to look up the status within another table called 'tblAssessments'. I used the below but as described above it is giving me an information warning only and I can by pass by pressing ok and then can view the output of the query to which Expr1 is blank.
If I change the expression to the below it works fine, albeit it populates all the corrects with the status from the one record.
Code:
Expr1: DLookUp("[tblAssessments].[SummaryStatus]","[tblAssessments]","[tblAssessments].[APID]=1001")