refresh from subform (1 Viewer)

bbwolff

Registered User.
Local time
Today, 14:31
Joined
Oct 1, 2013
Messages
116
i have some general info - name,surname,birth... in the form header
if you want to change that, you have to press a button, that takes you to a popup form where you edit.
i have problems applying edits on exit from the pop up form.

i tried
Code:
forms!MainForm!requery
, but nothing changes
nothing happens with
Code:
Forms!MainForm!Name.requery
either
alsotried onfocus event for mainform, withouth success

data for the main form is loaded on form load with

Code:
Me.Name = DLookup("[bName]", "Table", "[ID] = " & Me.tID)
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 13:31
Joined
Sep 12, 2006
Messages
15,658
perhaps you need to wait for the popup form to close


open popupform
wait until popupform closes*
now do the requery

*I use syscnd object, but I think there is probably a simpler forms container you can use now

sort of

Code:
 while isloaded("formmane")
     doevents
 wend
 

bbwolff

Registered User.
Local time
Today, 14:31
Joined
Oct 1, 2013
Messages
116
Code:
Forms!MainForm!Name = DLookup("[bName]", "Table", "[ID] = " & Me.tID)

This, after table update, works. A bit of hassle of I change a lot of parameters.
 

Users who are viewing this thread

Top Bottom