Reducing Number of Columns When Changing Query

From: dormy (dormy_at_dormys.house.com)
Date: 09/24/04


Date: 24 Sep 2004 14:46:03 -0500

I have a DataGrid that is bound to a .mdb using a DataAdapter and DataSet. When
I first start the program the grid is filled with data properly.

I then change the select command and refill the DataSet. The change to the
query is to remove one column that is returned. For example:
before
SELECT a, b, c, d FROM x
after
SELECT a, b, c FROM x

The proper rows are displayed but I still get a column labeled d. The column d
has empty data.

How to I get the grid to stop displaying column d, short of manually removing
the column. There will be instances where the query is typed in by the user and
can be sonewhat freeform.

Thanks



Relevant Pages

  • Re: Reducing Number of Columns When Changing Query
    ... This posting is provided "AS IS" with no warranties, ... > I first start the program the grid is filled with data properly. ... > How to I get the grid to stop displaying column d, ... There will be instances where the query is typed in by the ...
    (microsoft.public.data.ado)
  • 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)