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

Setting Default Value to Previous Record Value

Status
Not open for further replies.

dulla

Technical User
Feb 3, 2003
54
hello. i am trying to set the default value of a field (client score) to the value of this field in the previous record. how do i do this? the table that this field is a part of is called Counseling Session and it is on the many side of a one to many relationship with a table called Clients. thanks.

ameen
 
I disable the navigation buttons on the form and use my own. Then on the cmdADD buttoon, I use the following code.

sub cmdADD_click()
dim savr as whatever

savr = me.whatever
docmd.gotorecord,, acNew
me.whatever = savr

exit sub

This populates the new record with a value on the last one. Other manipualations of similar kinds can be made.

rollie@bwsys.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top