Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show only 3 fields in Grid

Status
Not open for further replies.

Menglish

Programmer
Jun 22, 2001
66
I am trying to show only three fields in my grid and they are not in the table field order. I use properties and select the three fields and have the grid properties set to 3 columns but when I run the form, it lists the fields in the order of the tables fields and adds the bottom scroll bar.

I have the tables opened and I have "recordsource" set for each grid. What am I missing.

Thanks for any comments.

Millard
 
Method1:

SELECT myField1, myField2, myField3 INTO CURSOR myCursor

and set myCursor as your Grids table

Method2:
In the grids column controls.. set the following preperties.

myGrid.Column1.ControlSource = myField1
myGrid.Column2.ControlSource = myField2
myGrid.Column3.ControlSource = myField3

:)
This willsolve your problem :)

ramani :)
(Subramanian.G)
 
Ramani,

Since Menglish opens the table at the start, we better write;

myform.grid1.recordsource=""

to avoid automatic grid population. Then the SQL statement, etc, etc.

Foxbldr


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top