this is going to sound really dumb... 
Author Message
 this is going to sound really dumb...

ok.. i have a recordset and have a datagrid on a form.   i want to retrieve
(debug.print for example) a name from one of the fields in the selected
entry.  i.e.

contacts database, i want to print out or otherwise use the lastname field.

please help.. i feel so stupid not knowing this.



Sat, 14 Aug 2004 00:15:56 GMT  
 this is going to sound really dumb...

Quote:
> ok.. i have a recordset and have a datagrid on a form.   i want to
retrieve
> (debug.print for example) a name from one of the fields in the selected
> entry.  i.e.

Whatever it was that you used to bind the datagrid to the recordset is the
thing that owns the recordset.  for example, if you used a data control, you
might code something like this:

Data1.Recordset!LastName

In any case, you refer to the recordset itself to get the value, not the
grid.  And since the user clicking on the grid tells the data control which
record they want, the data control will make sure that whatever field you
refer to will have the value of the current record.
--
Peace & happy computing,

Mike Labosh, MCSD MCT
"Escriba coda ergo sum." -- vbSensei



Sat, 14 Aug 2004 00:59:45 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. This is a really really dumb question.

2. Really dumb question about As

3. really dumb question

4. Really dumb question

5. Really dumb : creating a hyperlink ?

6. Really dumb textbox newbie question..

7. A really dumb question... OS Detection

8. Really dumb question

9. Really dumb : creating a hyperlink ?

10. This may sound dumb.... but

11. A simple, dumb sound question

12. I am really stuck here....

 

 
Powered by phpBB® Forum Software