469,609 Members | 1,666 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,609 developers. It's quick & easy.

Passing a Parameter to a Form when Opening

I have a form called frmCustSearch to search for customers against an SQL
Server database.

The form contains a simple textbox into which the Customers surname is
typed, and a datagrid then becomes visible on the form containing the
CustID, Surname, Forename and address of all people with that surname.

The correct customer is then selected from the datagrid and I want to open a
new form called frmCustomer to display all the details for that customer,
using the CustID as an argument when opening the form so that it can
retrieve the customer record from the database during its load event.

This is similar to using the OpenArgs in MS Access.
But how do I achieve this in VB.NET?
Your help is much appreciated.

Paul
Jul 21 '05 #1
1 1319
Cor
Hi Paul,

The best thing is first to look at the capabilities of the SQL server
version you are using.

For searching that is not for all the same and there are lot of different
possibilities.

I hope this helps?

Cor

I have a form called frmCustSearch to search for customers against an SQL
Server database.

The form contains a simple textbox into which the Customers surname is
typed, and a datagrid then becomes visible on the form containing the
CustID, Surname, Forename and address of all people with that surname.

The correct customer is then selected from the datagrid and I want to open a new form called frmCustomer to display all the details for that customer,
using the CustID as an argument when opening the form so that it can
retrieve the customer record from the database during its load event.

This is similar to using the OpenArgs in MS Access.
But how do I achieve this in VB.NET?
Your help is much appreciated.

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Nicolae Fieraru | last post: by
4 posts views Thread by Ron Rohrssen | last post: by
7 posts views Thread by Ken Allen | last post: by
1 post views Thread by Paul Fairless | last post: by
reply views Thread by Magnus Bergh | last post: by
reply views Thread by Solution2021 | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.