| | |
recordset,sql not sure where my problem is
Thread Solved |
•
•
Join Date: Jul 2007
Posts: 189
Reputation:
Solved Threads: 16
Here is my code, it works when I leave away the line in bold, I can't figure out what's wrong with my line in bold, I've been checking my database so many times already, can you help me
•
•
•
•
With gridMieter
.Cols = 5
.TextMatrix(0, 0) = "Frist_id"
.TextMatrix(0, 1) = "Bau_id"
.TextMatrix(0, 2) = "Liegenschaft"
.TextMatrix(0, 3) = "Mieter"
.TextMatrix(0, 4) = "Kündigungsfrist"
'.COLWIDTH(0) = 0
'.COLWIDTH(1) = 0
adoMieter.RecordSource = "SELECT * FROM tblfrist INNER JOIN (tblMieter INNER JOIN Liegenschaften ON Liegenschaften.Rimo_Liegnr = tblMieter.Rimo_Liegnr) ON tblMieter.frist_id = tblfrist.frist_id"
adoMieter.Refresh
Do While Not adoMieter.Recordset.EOF
.Row = .Rows - 1
.TextMatrix(.Row, 0) = adoMieter.Recordset("tblfrist.Frist_id")
.TextMatrix(.Row, 1) = adoMieter.Recordset("tblfrist.Bau_id")
.TextMatrix(.Row, 2) = adoMieter.Recordset("Liegenschaften.Name")
.TextMatrix(.Row, 3) = adoMieter.Recordset("tblMieter.Name")
.TextMatrix(.Row, 4) = adoMieter.Recordset("Kündigungsfrist")
.Rows = .Rows + 1
adoMieter.Recordset.MoveNext
Loop
End With
Last edited by plusplus; Oct 29th, 2007 at 7:31 am.
Hi,
May be the field tblfrist.Bau_id is Null..
Just Concatenate it with a Blank String :
Regards
Veena
May be the field tblfrist.Bau_id is Null..
Just Concatenate it with a Blank String :
vb Syntax (Toggle Plain Text)
.TextMatrix(.Row, 1) = adoMieter.Recordset("tblfrist.Bau_id") & ""
Regards
Veena
Last edited by QVeen72; Oct 29th, 2007 at 9:48 am.
![]() |
Similar Threads
- Shopping Cart Not Working (ASP.NET)
- Weird ASP/SQL Problem (ASP)
- ASP electronic exam project, problem when update data base (ASP)
- ASP electronic exam project, problem when update data base (ASP)
- Ms Access sql problem (Java)
- Retrieving a field from a SQL procedure (ASP)
- "ADODB Recordset error" (ASP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: I'm an apprentice.Please
- Next Thread: msflexgrid,gridlines
| 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





