| | |
using command button instead of datacontrol
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
hey i am new to visual basic programming...just 15-20 days into it...
i wanna know how can i use command button to access the ms access files instead of using the data control....how can i do that????
i have tried a lot of things but to no effect .... please help me with this!!!!
i tried to find this solution in the solved threads but without any success.
i wanna know how can i use command button to access the ms access files instead of using the data control....how can i do that????
i have tried a lot of things but to no effect .... please help me with this!!!!
i tried to find this solution in the solved threads but without any success.
Hi,
Add "Microsoft ActiveX objects 2.0" References to the project.
use this code:
Regards
Veena
Add "Microsoft ActiveX objects 2.0" References to the project.
use this code:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim rs As New ADODB.Recordset Dim AC As New ADODB.Connection With AC .ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\MyDB.mdb;Persist Security Info=False" .Open End With ssql = "Select * from MyTable" Set rs=Nothing RS.Open ssql,AC If RS.EOF Then ' No Record Found Else 'Records Found End If
Regards
Veena
•
•
•
•
hey i am new to visual basic programming...just 15-20 days into it...
i wanna know how can i use command button to access the ms access files instead of using the data control....how can i do that????
i have tried a lot of things but to no effect .... please help me with this!!!!
i tried to find this solution in the solved threads but without any success.
Last edited by jireh; Jul 17th, 2007 at 9:48 pm.
A conclusion is the place where you got tired of thinking. http://www.martin2k.co.uk/forums/index.php?showforum=4
http://www.a1vbcode.com/a1vbcode/vbforums/Forum3-1.aspx
http://www.developerfusion.co.uk/for...orum&ForumID=4
•
•
•
•
thanx for your opinion....
but i guess data control has some limitations...
i may be wrong though.....
kindly guide me.....
By the way are you using
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Option Explicit
Last edited by jireh; Jul 18th, 2007 at 4:15 am.
A conclusion is the place where you got tired of thinking. http://www.martin2k.co.uk/forums/index.php?showforum=4
http://www.a1vbcode.com/a1vbcode/vbforums/Forum3-1.aspx
http://www.developerfusion.co.uk/for...orum&ForumID=4
![]() |
Similar Threads
- How do I use a command button to open a exe file created in VB? (Visual Basic 4 / 5 / 6)
- [req]How to move elements in the list box up and down using command button? (Visual Basic 4 / 5 / 6)
- How to disable a hyperlink or a textbox or a command button? (PHP)
- Send Command button in MSWord code needed (Visual Basic 4 / 5 / 6)
- Command Button Validation (Visual Basic 4 / 5 / 6)
- Problem with VAT+COding for Command button (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: combining vb6 and flash mx
- Next Thread: changing the database's path....
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






