Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming, microsoft.public.access.queries
|
|||
|
|||
![]()
Can anyone explain this?
Sub test() Dim rs As ADODB.Recordset Set rs = New ADODB.Recordset With rs ..ActiveConnection = _ "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\Tempo\New_Jet_DB.mdb" ..Source = "SELECT Switch(1=1, MyIntegerCol, 0=1, NULL) FROM MyTable" ..Open MsgBox .Fields(0).Value MsgBox .Fields(0).Type = adVarBinary End With End Sub Test table: CREATE TABLE MyTable ( MyIntegerCol INTEGER NOT NULL ) ; INSERT INTO MyTable VALUES (2) ; Many thanks, Jamie. -- |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
why this strange result with vlookup | Excel Worksheet Functions | |||
SUMIF, wrong result, strange behaviour | Excel Worksheet Functions | |||
Pivot table strange result | Excel Discussion (Misc queries) | |||
Strange Result using custom number format | Excel Discussion (Misc queries) | |||
Strange result in Excel 2000 | Excel Discussion (Misc queries) |