This topic is locked

Using an Access query...

9/15/2005 11:10:52 AM
ASPRunnerPro General questions
sparkg author

I have 3 tables related to each other...table1, table2 and table3.

Table2 has subrecords of Table1 records...Table3 has subrecords of Table2 records - a drilldown.

As well as looking at the 3 tables individually from Runner menu, I need to have a view of all the records in Table3 with their associated Table1 and 2 data. So I created a query - say OverviewQuery - in the Access database to create the Runner view I need.

This works fine, except it appears a Query in Runner is inherrantly uneditable therefore all I see is id numbers in the fields, I have no way to edit the lookups and show the valuename instead of the id number for fields.

I kind of rigged it by copying the code out of each of tables 1,2 and 3 list.asp into OverviewQuery's list.asp. But I would have to do that everytime I compile the code...in addition, I can't get lookups set so they show up in the advanced search in the query.

Any suggetsions? A better way to do this? Any way to paste some code into the project file in the queries field sections to make them use the lookups?
(BTW - we don't need to edit data in this query view - just view, search and export)
Thanks!!

Sergey Kornilov admin 9/15/2005

I guess the easiest way to achieve this - modify OverviewQuery to pul data from lookup tables as well displaying real values instead of IDs. If you do not need to edit this query everything will work just fine.

sparkg author 9/15/2005

That's what I'd thought, but when I go to the Formating step of Runner for the Query, I can't set those Lookup options, all locked. All of Edit/Add/Copy/Delete options are grayed out in the Key Column step. I tried editing that information into the project file but it didn't seem to work.

Sergey Kornilov admin 9/15/2005

You can mark any field as key column, check off "Edit page" and setup drop-down boxes. After that go back to "Key column" tab and uncheck "Edit page" and key column.

sparkg author 9/16/2005

That worked great...many thanks!