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

TextBox Control Source = Last()

Status
Not open for further replies.

swk003

IS-IT--Management
Feb 10, 2004
86
GB
i am trying to update textbox2 with the last record entered into textbox1, having just saved the record to a table! In Access this was fairly easy:

Control Source = Last("textbox1")

Is there an easy way to do this in VB.net??
 
I'm not sure I understand your question - if you simply want textbox2 to contain the value of textbox1 after the record has been saved then ...

At the end of your save code:

TextBox2.Text = TextBox1.Text


Hope this helps.


[vampire][bat]
 
I have been very silly....was trying to update TextBox2 with TextBox1 data from btnSave click event and not the SaveChanges()therefore the data was being scrubbed! thansk for your help and sorry for wasting your time!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top