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

Losing data in one field when backtracking thru records.

Status
Not open for further replies.

FrankMars

Technical User
Dec 20, 2010
67
US
I enter a form and go to a new record. In one of the 20 fields on the form I have a pop-up calculator which fills out a
field. I finish the record and go to the next new record. If I happen to use the previous button and go back thru the records, the field with the pop-up calculator blanks out. The further I go back the more info I lose in that particular field. I'm a beginner, any ideas?
 
Hi Duane- Yes, the control is bound. I want the data to show in my main table. Yes, there is code in the form e.g. the pop-up calculator feeding the problem field.
 
Sorry!

Private Sub btnEnter_Click()

Forms!faEnterHouse!tbxLandSF = Me.tbxLandSF

Forms!faEnterHouse!tbxLandOrigPricePerSF = Forms!faEnterHouse!tbxLandOrigListPrice / Forms!faEnterHouse!tbxLandSF

DoCmd.Close acForm, "fnCalculatorLandEntryLandSF"
DoCmd.OpenForm "fnChooserLandTarget"

End Sub
 
You need to explain what form the code is running in and what the other forms do.

What happens if you comment out the code?

Have you set a breakpoint in your code to see what is happening?

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top