The easiest and simplest way to do this would be to:
1 place a DataControl on your form.
2 Set its DataBaseName property to your DataBase.
3 Set its recordsource property to your desired table.
4 In code: assuming table with at least two fields
data1.recordset.movefirst...
Try setting msflexgrid1.col to the desired column.<br>Or if the user clicks in the column then presses a button with your code in it's click event the sort will take place.<br><br><br>good luck<br><br>bob <p>Robert L Norton<br><a...
In the list1 click event place code ie:<br><br>label1.caption = list1.text<br><br><br>hope this helps<br><br>bob<br> <p>Robert L Norton<br><a href=mailto:2dogs@webace.com.au>2dogs@webace.com.au</a><br><a href= > </a><br>
If I understand your problem correctly the two Items below might help.<br><br>1. If you use the DataGrid bound to an adodc your changes will be saved when your user moves to another column or row.<br><br>2. You can use a message box in the forms QueryUnload proceedure to...
Try setting the RowSource to the AoDc and the ListField property to the desired Field. The BoundColumn may be set to another field in your table if desired.<br><br>The style property may now be set to either 0 or 2.<br><br>I hope this helps. It works for me.<br><br>good...
When you have Written your code go to File Menu and select <br>
'Make EXE File'.<br>
<br>
Good Luck,<br>
Bob<br>
<br>
<br>
<br>
<p>Robert L Norton<br><a href=mailto:2dogs@webace.com.au>2dogs@webace.com.au</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.