Refresh a textbox contents (1 Viewer)

CoffeeGuru

Registered User.
Local time
Today, 10:33
Joined
Jun 20, 2013
Messages
121
I have a Tab Control on a Form
On this Tab Control is a Text Box [Text476] that is linked to a 1 row Table [Period] in my database.
I also have on the Form but outside of the Tab Control a drop down box that allows the user to select a customer.

On selecting the customer an After Update procedure is run that updates [Period] with the correct values - this part works.

What does not appear to happen is my Text Box [Text476] does not relect the new values from [Period]

As part of the After Update procedure I have tried
Form.Requery
Form.Refresh
Form.Repaint

but none of them do anything to [Text476]

Can anyone advise me on what to do.

Thanks

Martin
 

jdraw

Super Moderator
Staff member
Local time
Today, 05:33
Joined
Jan 23, 2006
Messages
15,406
Please show all the code for the AfterUpdate event.
 

KenHigg

Registered User
Local time
Today, 05:33
Joined
Jun 9, 2004
Messages
13,327
Something tells me you need to requery the textbox, not the form to refresh the it
 

CoffeeGuru

Registered User.
Local time
Today, 10:33
Joined
Jun 20, 2013
Messages
121
Please show all the code for the AfterUpdate event.
Private Sub cboChain_AfterUpdate()
Country1 = Me.cboChain.Column(1)
Chain1 = Me.cboChain.Column(0)
DoCmd.OpenQuery "0_Current_user_3", , acEdit
DoCmd.OpenQuery "qryDefaultPeriod001"
DoCmd.OpenQuery "qryDefaultPeriod002"
DoCmd.OpenQuery "qryUpdateYearWeek_0"
Form.Requery
End Sub
 

Users who are viewing this thread

Top Bottom