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

Write Conflict Issue

Status
Not open for further replies.

GarstonMassive

Programmer
May 5, 2006
71
GB
I've trawled through all the posts on this subject in these forums without really finding the right answer.

My situation is that I have a Form with a tab control, that has a subform on it (dont ask), that has a tab control on it, that has a subform on it.

The problem is that when I go to a new record on the Main form, fill in some details on the last subform, and then go back to the Main form again to enter some text, I get this horrible little error box!

I've tried Refresh and Requery but they dont work.

Anyone point me in the right direction?
 
....forgot to mention that if I create the new Main record, then enter some text in any one of the controls (bound) then go to the last subform, type some data and then go back to the Main form.....it works!

It doesnt work if I dont type any data into the Main form.
 
I fixed it by implementing a very crude fix whereby in code I'm entering text into a control on the Main form and then nulling it.

Does the trick but cant understand why it's happening.

 
...also by way of follow-up the numpty who developed it used:

Form.Refresh

rather than:

Me.Refresh

which I changed it too and it worked!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top