How to requery a form

T

Tore Gylver

I have a windows client working with a web service.

From the windows client I have done an update of a field
in the web service database by means of a command (not
via changes in windows client dataset).

What should I do in Visual Basic to refresh/reload the
windows client form with the new data? The windows form
is bound to a dataset that is merged on the forms on load
event.

Regards

Tore Gylver
 
T

Tore

To be a bit more specific:

The windows form is bound to a datset DS_Orderget2. Here
are the 3 lines of code that I would expect to update my
form:

Dim WS As New WinStartup.OrderHandling.OrderGet
WS.Credentials =
System.Net.CredentialCache.DefaultCredentials
DS_OrderGet2.Merge(WS.OrderGet(POrderID))


The 3 lines are copied from the form on load event where
they work perfectly. I have to close the form and then
show it view the new data.

Regards

Tore
 
T

Tore

I missed one line of code

ds_orderget2.clear

The line clears the dataset completely before I reload it
This fixed the problem

Tore
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top