Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting

Post new topic   Reply to topic
connection
View previous topic :: View next topic  
Author Message
keba
Newbie


Joined: 22 Nov 2005
Posts: 2

PostPosted: Dec 8th, 2005 08:13 AM    Post subject: connection Reply with quote

Dear Authors
I was trying from last time. i would like to connect to database, writing code in the module using the error trap bu i failed to do that , so if authors could solve my problem .

My code is as follows

On Error GoTo connect_database_error

gconn.ConnectionString = gconn1 & App.Path & "\Exer20.mdb" & gconn2
gconn.Open

connect_database = True

Exit Function

connect_database_error:

I would be grateful if u all solve the problem faster
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger ICQ Number
VB_Developer
Newbie


Joined: 25 Feb 2006
Posts: 18
Location: Hyderabad, India

PostPosted: Feb 26th, 2006 04:00 AM    Post subject: Reply with quote

Hi,
Could you please post your full code and let us know the values of this both variables gconn1 and gconn2.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic