NewB
NewB

Reputation: 91

Get the value of textbox after refreshing the form

I have a continuous form that has the property that has some fields. When I click a button on the form a Requery is processed on the form which results in updated value of some textboxes (these are not enabled, i.e. read only).

What I'm trying to do is to get the value of one of the textboxes in the form after Requery. How do I do that? I've tried using the Current event to get the value after the requery (refresh) but it's not working. Is there any other event that can do the work?

Upvotes: 0

Views: 649

Answers (2)

NewB
NewB

Reputation: 91

Thanks for your contribution.. The problem was that the value of the field I was trying to get the value of comes from adding 2 values (a + b)

and so the solution was updating the field before saving its value to a different variable...

Upvotes: 0

PowerUser
PowerUser

Reputation: 11791

Just use the name of the field. For example, after the requery, use msgbox [FieldName].

Upvotes: 1

Related Questions