TQuery question



Hi,

Is there a way to make a query populate the fields even though I have
some of my fields already entered? For example, assume I have a query
on several tables of the same structure (let's call them
'table1', ..., 'tableN'). Assume each of them have M columns:
col1, ..., colM. For an example, let them all be integers. I want to
make a new calculated fields called 'r_fun1', ..., 'r_funK', each of
which is an integer result of some functions 'fun1', ..., 'funK'. I
have these functions in my code and they are fairly complex (i.e.
cannot be done in SQL alone - they are not simple sums, averages and
such).

I need an application in which the user will choose which table it
wants to analyze and show the results in the grid. The grid should
display both the input data (col1, ..., colM) and the results
(r_fun1, ..., r_funK). One option was to take the query, prepare its
SQL, clear the fields, run it just to get the fields, copy the fields,
close the query, add the copied fields and the necessary fields for
the results and open the query again. However, this is so ugly that I
am really searching for a finer solution. Anyone has an idea?

.



Relevant Pages

  • Re: update query: still having problems
    ... bring the workstatus field in the grid and, at the criteria line, write: ... UPDATE Department INNER JOIN Sheet1 ON Department.employeeID = ... What I want to do is press a button that will run the query and update the ...
    (microsoft.public.access.queries)
  • Re: Sequence numbering labels
    ... The upper pane of the query design window contains the tables. ... lower pane is the output grid. ... table field to the query output grid' ...that I did not understand, ... and put that count field into the label via label wizard. ...
    (microsoft.public.access.modulesdaovba)
  • Re: VB.NET - How do I return an AutoNumber from an Insert Statement using the DataGridView
    ... > Thanks for that Bart, ... > the values from my Grid to the TableAdapters Insert method. ... >> choose add query, then choose insert query, use a query like below, ... >>> stored in the SQL Database but a VB generated (or disconected dataset ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Using queries in a table adaptor?
    ... using the query wizard I have added several queries ... FROM [Drive Package] ... Not there is no Join here these are just simple Queries on a simple table. ... I am use the flex grid because of some unique features ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: timeline/calendar datagrid
    ... MS Access MVP ... query via code --the query would create a temp table then populate the ... month/year across the top and a grid for each week within each month. ... i'm not interested in the color, etc of the screenshot. ...
    (microsoft.public.access.forms)