Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using office 97 and am tryin to get some data from
access to excel. With the code I've written in excel all that is displayed in the label is the default caption. How can I display what is in varVariable? Thanks for any help. This is my code: Option Explicit Sub Data() lblDat.Caption = varVariable() End Sub Function varVariable() As Variant Dim dbsNozztst As Database Dim rstLngBinDat As Recordset Const conChunksize As Long = 32768 'open database "db1.mdb" and recordset "dbt_Pruefbericht" Set dbsNozztst = OpenDatabase("C:\db1.mdb") Set rstLngBinDat = dbsNozztst.OpenRecordset ("dbt_Pruefbericht") 'use GetChunk method to assign long binary data to a variable varVariable = rstLngBinDat!dbf_MessDaten.GetChunk(0, conChunksize) 'close database and recordsets dbsNozztst.Close End Function |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"dave" wrote in message
... varVariable = rstLngBinDat!dbf_MessDaten.GetChunk(0, conChunksize) Should be: Set varVariable = rstLngBinDat!dbf_MessDaten.GetChunk(0, conChunksize) P |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Transferring data to excel spreadsheet 2003 | Excel Discussion (Misc queries) | |||
transferring data from quattro pro to excel from cd-rw | Excel Discussion (Misc queries) | |||
Transferring Data From Access | Excel Discussion (Misc queries) | |||
Transferring data from MS Access to MS Excel | Excel Discussion (Misc queries) | |||
Transferring Excel Data to Word Document | Excel Discussion (Misc queries) |