Nope, I just want to pull out each single record and to make each single record as the column variables, just like using the crosstab query, but I need the to use the query as control source on the Edit Form, which crosstab is read-only. So I plan to use the statment such as
Code:
set rs = OpenRecordset("AreaGroup")
recordCount = DCount("travelArea","AreaGroup")
For intX = 1 to recordCount
SQL = "SELECT Date, Group, (IIf([selectionQuery].[Area]= " & rs.record(intX) & ", [NumberOfpeople],"-")) As " & rs.record(intX).name & " From selectionQuery, AreaGroup;"
qdf.SQL=SQL
Next intX
So I need to get the each individual record from the "AreaGroup" Query, which only contain one column of the selection areas
Please help me...I struggled almost one week on this piece of code...
Originally Posted by
June7