Skip to content
Advertisement

Selecting additional data/values to display as column in query or in form

I have an employee index, that I need to run queries on for each employee, and display that output along with the original employee.

So say the employee index has an ID, batch, status, and multiple other columns. I have a table where I keep track of every time a column in the employee index changes. I want to display and later export dates of when certain columns use to equal other values, right along side the original employee row.

Naturally I tried creating a form to display multiple value, added a text box to hold my extra information, and changed the value of the text box for each Form_Current event in VBA.

It seemed to work at first… first example

Until I realized the dates were set to whatever the current record date should be [second example3

So then I tried a join:

Which would work, if I could some how prefetch EmployeeIndex.[ID Number]. (I didn’t name these columns) Except I haven’t got the slightest clue and I’m running on fumes.

Advertisement

Answer

Try with a subquery:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement