| | |
Joining two tables in VB 6
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
here's a sample:
This is a three joned table
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
str = "select [Book File].Author,[Book File].BookTitle,Return,Penalty,[Transaction File].StudentNumber from ([Transaction Table] left join [Book File] on [Transaction Table].AccessionNumber=[Book File].AccessionNumber left join [Student File] on [Transaction Table].StudentNumber=[Student File].StudentNumber where return=1 and penalty<>0 and BorrowDate>='" & Format(dtpDateFrom, vbShortDate) & "' and BorrowDate<='" & Format(dtpDateTo, vbShortDate) & "'"
This is a three joned table
Last edited by jireh; Sep 28th, 2007 at 10:55 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
![]() |
Similar Threads
- Join multiple tables (VB.NET)
- Repeated Row In Record Sets (MS SQL)
- Joining 4 or more tables (MySQL)
- dataabse connectin string problem? (MySQL)
- ..joining 2 tables?=A tuf one....can U crack this ? (VB.NET)
- Need Help Joining 3 tables (MySQL)
- PHP newbie, project feasibility (PHP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: MS Access data retrieval problem
- Next Thread: from list view to label
| Thread Tools | Search this Thread |
* 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 urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





