Topic profile page for Recordset.
This page has aggregated data from forum posts, threads, listings, online discussions, newsgroups, messageboards, and other online sources which contain user generated content for the term: Recordset.
Topic "Recordset" was discussed 13,553 times on 331 sites in last 3 months
Started 23 hours, 46 minutes ago (2009-11-29 07:35:00)
by Bang Tut
Dear Sir! Could you help me in pagination (Dreamweaver functionality) with advanced Recordset? All data form posts gathering in array (need because some variables may be empty): $Wheres = array(); And after join to recordset: $query_Recordset1 = "SELECT * FROM vacancy"; if (count($Wheres)) { $query_Recordset1 .= " WHERE ".join( ' AND ', $Wheres ); $query_Recordset1 .= " ORDER BY dolghn ASC,...
Started 2 days, 5 hours ago (2009-11-28 01:57:00)
by cspectra
I have been so far learn and implement at the same time an Access 2007 project OK. The last problem is that when I use the ADO Recordset to change an asset record of an asset-table, which has a look-up field , hierarchyID, to another table, I got runtime error of -2147467259 (80004005) that tells me I cannot change it since there is a related record with the hierarchy-table. How can I fix this....
Started 2 days, 9 hours ago (2009-11-27 21:44:00)
by prasadpbr
HI i Have created a recordset in vb6. I want to add that recordset rows to database table (sql server 2005) i wrote for that. But its not working properly. Can anyone suggest me. below is my code. frmDNELoad.lblStatus.Caption = "Loading data into database......" Call FindServerConnection_NoMsg Dim lngRecCount As Long lngRecCount = 0 rcdDNE.MoveFirst...
Started 2 days, 22 hours ago (2009-11-27 08:29:00)
by dz2k7
Hi everybody, I've got a new under the gun challenge on Friday. So I need your help again. I have one table having data and one table structured the same way like the first one, but empty. Using the VBA recordset i analize records of the first table. I use VBA because the logic needs to analize not only the record where the recordset is on, but the previos record as well. So ...
Started 3 days, 15 hours ago (2009-11-26 16:20:00)
by natf
I have some SQL creating a recordset: SQL = "SELECT C.colourId, C.colour, IIF(SC.stockCode IS NOT NULL,'ON','') AS sel " _ & " FROM Colours AS C LEFT JOIN stockColours AS SC " _ & " ON ( C.colourId = SC.colourId AND SC.stockCode = " & request("stockCode") & ") " _ & " ORDER BY C.colour " Set objRScols = Server.CreateObject("ADODB.Recordset") objRScols.Open SQL, ...
Started 4 days, 14 hours ago (2009-11-25 16:30:00)
by vgarzon
Hi, I think that I'm stuck in a glass of water, but I've been trying to do this for a couple of hours with no results. Maybe you can help me as I'm not an experienced VBA programmer. I'm trying to show the data retrieved in an ADO recordset, in an unbound subform. I do this to get the data in the recordset: Code: Dim cnLAO As ADODB.Connection Set cnLAO = New ...
Started 4 days, 16 hours ago (2009-11-25 14:41:00)
by BjoernBL
The following source code works perfectly, except for the bold source code line Set myRecordset = qryPMNames.OpenRecordset(dbOpenDynaset) which throws the error: "Run-time error '13': Type mismatch" independent of the Open-Type (here "dbOpenDynaseet") used. Do I overlook something simple regarding the assignment to the Recordset object? Do I need to use a special Recordset type, e.g. DAO, ...
Started 5 days, 5 hours ago (2009-11-25 01:28:00)
by ryanbesitulo
Hello.. Anyone know how to edit recordset I want to edit existing record in my database but my problem is my record did not changed,Here's my code, rs.Edit rs!name = TxtPen.Text rs!Branch = TxtBranch.Text rs!Home_Address = TxtHome.Text rs.Update Thanks
Started 5 days, 18 hours ago (2009-11-24 13:04:00)
by tlw444
I am having problems with the server behavior. I am using CS3. Has anyone else ever had this problem, and if so what was the work around? Everytime I try to use the Show If Recordset Is Empty, it knocks me off DW. I even tried to use this code so it would go to another page if the recordset was empty. Please help!
Started 1 day, 15 hours ago (2009-11-28 15:53:40)
by patrick24601
I've written a function that calls a mysql stored procedure and, via the rdr.Read() function converts each column into an object property. The function overall returns a collection of these objects. I now what to take this function and make it work for different stored procedures and different objects. It looks like I cannot return the read object because that has to be open to read the ...
Started 1 week, 1 day ago (2009-11-21 09:03:00)
by accessNator
How can I achieve this? In my table I have Id, Month, Amount, LateFee i.e. 1,October,10,0 2,November,5,15 3,December,20,0 When I enter my records in a table, I enter the Month, Amount, and if applicable, a LateFee If I query my records for the month of November, I would like my result to look like this: 2,November,5
Started 6 days ago (2009-11-24 06:44:00)
by firoz.raj
Can anyone tell me .How should i save Multiple table data.Using rs.addnew.Kindly let me know the idea.Any help would be highly appreciated. Code: Public Sub PostPoData() Dim Con As ADODB.Connection, rsorder, rsdetail As ADODB.Recordset Dim SqlQuery, SqlDetail As String On Error GoTo Errhnd Set Con = New ADODB.Connection SqlQuery = "Select * From PO" SqlDetail = "Select...
Started 5 days, 23 hours ago (2009-11-24 07:55:00)
by luca90
I just have a filled recordset named RS1 (extract form a sql query) and have this code, now i want to copy the entire recordset in the sheet started from A2: Sub UNO() Dim objConn As ADODB.Connection Dim szConnect As String Dim szSQL As String ' Create the connection string. szConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=\\xxxxxxx\yyyyyy\zzzzzz\yyyyyy ...
Started 3 days, 21 hours ago (2009-11-26 09:59:00)
by littlemookie
Hi Chaps, I have a recordset that pulls data from a database, then presents the data in a table. The data is grouped by 'projid', repeated for every 'projid', with a show/hide control, to show all the 'jobid's' relating to that particular 'projid' This is what I have so far: Code: SELECT tbl_projects.projid, tbl_projects.projtitle, tbl_projects.projdue, DATE_FORMAT(tbl_...
Started 1 week, 1 day ago (2009-11-21 22:55:00)
by Joseph Greenberg
I installed the Visual Foxpro drivers available on the MS site. I then added in a "freedirectory" via ODBC Administrator. When I link to a foxpro table (dbf) in Access 2007, if I try to change a record, it tells me the recordset can't be edited. Any idea why not? No other program or process has the table open. ....
Started 1 week, 1 day ago (2009-11-22 02:35:00)
by bijan
Hi all, How can I define a correct date format for varialbe(vara) in this code: Dim A As String vara = DateValue(Me.TextBox1.Value) dbPath = "T:\REF.dbc" Set conn = CreateObject("ADODB.Connection") Set rs = CreateObject("ADODB.Recordset") conn.Open = "Provider=vfpoledb;UID=TST;password=12345;Data Source=" & dbPath...
Started 1 day, 5 hours ago (2009-11-29 01:23:00)
by vavasoo
hi the following macro gets stuck where show below Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim sql As String Dim pc As PivotCache Dim pt As PivotTable con.Open "provider=microsoft.jet.oledb.4.0;" & _ "data source=C:\Users\M Varnendra\Desktop\VBA on Excel\Chapter 22\salesdb.mdb"...
Started 3 days, 10 hours ago (2009-11-26 20:41:00)
by CobaltSS
Hi all, I've created an SQL connection from our NAV (SQL) database to an external database stored on a different server. I would like to display the returned results in a report. How do I reference the data fom my recordset? Here's the code I'm using: Code: Select all ADOConnection.Open; IF CREATE(ADORecSet) THEN BEGIN SQLString[1] := 'SELECT DisplayName, Location from dbo...
Started 4 days, 19 hours ago (2009-11-25 11:22:00)
by chas47
I am trying to open a recordset so I can search a field [pass] for its contents till I find a match. ---- Private Sub Command3_Click() Dim DbsWebClubs As Database ' I get this error "User-defined type not defined" Dim rstTab169 As Recordset Dim Pass As Field Set DbsWebClubs = OpenDatabase("...
Started 4 days, 23 hours ago (2009-11-25 08:20:00)
by Alt255
This is something thats been bothering me for a while. I have a VBA subroutine that takes a recordset and pastes the data to a blank Excel worksheet. Then Access gives a message that it's complete. The problem is that the active window is the excel worksheet, and not the access form. Anyone know how to return the focus back to Acess ...