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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying current records

Status
Not open for further replies.

goatsaregreat

Programmer
Mar 21, 2001
82
GB
I need to display the current record of a database in a textbox, followed by a "/", and the total number of records. This should change every time a user changes the record. I can get the "/" and the total, but not the current. PLEASE HELP !!!
 
what does the code setting the textbox text look like ie
text1.text = "value to go into textbox"
 
I put, Text1.text = adodc1.recordset.absoluteposition & "/" & adodc1.recordset.recordcount

The "Recordcount" works alone, but the absoluteposition kills the whole procedure. I get the error message, "Operation is not supported for this type of object." TIA for your continued help.
 
i'm not sure of the connection you are using but try this

Text1.text = adodc1.fields!name of db field & "/" & adodc1.recordset.recordcount
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top