hey its very easy just put the database connection code in a module so that u can get the strconn properties in the second form also...thats it
Regards, Prakash.N On Thu, 26 Sep 2002 Santosh Varma wrote : >Hello all, > > Sorry for the off-topic discussion. >But any one who knows VB can answer me personally. > >I have 2 forms. >In the first form, through the program, i call a function >connection() which >is as follows -> > >{ >Dim strconn As String >strconn = "Provider=SQLOLEDB.1;Persist Security Info=False;User >ID=Santosh;Password=santosh;Initial Catalog=master;Data >Source=anamika" >objconn.ConnectionString = strconn >objconn.Open >} > >and in the second form, i have 2 text boxes (from date and to >date ) and a >grid >and as soon as the focus is left from todate, i want to display >the details > from customer table to the grid. > >How to achieve this ?? > >Thanks and regards, >santosh -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: guess who INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).