Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi again!
Apparently, I'm not allowed to Append a field to my recordset. I've tried changing the Cursortype to everything but Forward only. And I receive: error 3219 Operation not allowed in this context on the Append line in the code below. ADO is required as the source will change after debugging. Any advice greatly appreciated. cheers, Matt. ------------------- Dim connDB As New ADODB.Connection Dim rsWeeklyScrap As New ADODB.Recordset Dim strDataPath As String Dim strConnection As String Dim strSQL As String Dim intCurRow As Integer Dim intCurCol As Integer strDataPath = "\\hserver01\hworking\pcntrl\FORECAST\xAmcan2003.m db" strConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source = " & strDataPath connDB.Open strConnection strSQL = "SELECT ProDate, SUM(ScrapQuantity) AS ScrapQuantity " _ & "FROM qryWeeklyStartupScrap " _ & "WHERE [Machine #] <= 14 " _ & "GROUP BY ProDate" rsWeeklyScrap.CursorType = adOpenStatic rsWeeklyScrap.CursorLocation = adUseClient rsWeeklyScrap.Source = strSQL rsWeeklyScrap.ActiveConnection = connDB rsWeeklyScrap.Open rsWeeklyScrap.Fields.Append "WeekNum", adInteger |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Making a field value append a hyperlink | Excel Discussion (Misc queries) | |||
Excel 2000 copy error | Excel Discussion (Misc queries) | |||
Cannot update <field name; field not updatable. (Error 3113) | Excel Worksheet Functions | |||
Removing entry from pivot table field list in Excel 2000 | Excel Discussion (Misc queries) | |||
How do I format currency field in Excel 2000 w/o 2 extra zeroes? | Excel Discussion (Misc queries) |