| | |
Connect to .dbf table
![]() |
•
•
Join Date: Sep 2006
Posts: 54
Reputation:
Solved Threads: 1
Hello guys,
im trying to connect to .dbf table every time i try to query from the table it gives a error
[Microsoft][ODBC Visual FoxPro]Operator/operand type ,mismatch
heres my sample code...
thanks..
im trying to connect to .dbf table every time i try to query from the table it gives a error
[Microsoft][ODBC Visual FoxPro]Operator/operand type ,mismatch
heres my sample code...
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Dim conn As ADODB.Connection Dim squery As String Dim rs As ADODB.Recordset Set conn = New ADODB.Connection conn.Open "Driver={Microsoft Visual FoxPRO Driver};SourceDB=" & App.path & ";SourceType=DBF" squery = "Select * from employee where Card_no=" & Format(Enrollnumber, "00000") & "" Set rs = New ADODB.Recordset rs.Open squery, conn Text1.Text = rs!Fname
![]() |
Similar Threads
- reading records from a .dbf file (Visual Basic 4 / 5 / 6)
- Create Table on SqlServer Through Asp.net coding (ASP.NET)
- foxpro help (MS Access and FileMaker Pro)
- Need Help connecting to a view (MS SQL)
- Password (Visual Basic 4 / 5 / 6)
- Help Please (Visual Basic 4 / 5 / 6)
- vb & sql (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Controlling simple devices in VB4/VB5
- Next Thread: VB6 & Access (user name, network printer, reminders)
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college 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 save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





