| View previous topic :: View next topic |
| Author |
Message |
19andrea19 General User

Joined: 05 Apr 2007 Posts: 11
|
Posted: Thu May 17, 2007 1:22 am Post subject: select a row in a tablecontrol |
|
|
I 've, in a formular, a tablecontrol; then I've a button with a macro;
in this macro, with a sql query, I select a record in one of my database tables.
Now, I want that, when i push the button, in my formular's table the row results of the query became selected.
how can I do this?
Thanks |
|
| Back to top |
|
 |
DrewJensen Super User


Joined: 06 Jul 2005 Posts: 2616 Location: Cumberland, MD
|
Posted: Thu May 17, 2007 4:12 am Post subject: |
|
|
If all you need if the current rows values, then you can just read those from the columns in the table grids data source ( dataform control )
You can also address this using the getxxxxx functions on the dataform
So either of these ways
TableGrid.Model.Parent.Columns(0).getDouble
or
TableGrid.Model.Parent.getDouble( 1 ) _________________ Blog - http://baseanswers.spaces.live.com/ |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Sat May 19, 2007 8:13 pm Post subject: |
|
|
Hmm, I was wondering how to do that the other day... Thanks Drew.. _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
|