How to requery a form

  • Thread starter Thread starter Tore Gylver
  • Start date Start date
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
 
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
 
I missed one line of code

ds_orderget2.clear

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

Tore
 
Back
Top