N
NickH
I am using Office 2003
I have a text field called 'Version' in an Access database which I am
pulling into an Excel spreadsheet so that I can generate a list of
unique version numbers to populate a ComboBox.
I have no control over the content of the database and the Version
field could contain anything alphanumeric.
My problem is that if a version number happens to be, for instance,
"1.0" then the moment it is copied from the recordset to a cell it
becomes "1".
What's the simplest way to ensure the cell contents (and ultimately
the ComboBox contents) reflect exactly what is in the database?
Here is the bit of code that I'm currently using to get recordset
contents into a worksheet...
' Deposit recordset into first column of temp sheet
rs.MoveFirst
Do
With ActiveCell
.Value = rs.Fields(0).Value
.Offset(1, 0).Activate
End With
rs.MoveNext
Loop Until rs.EOF
NickH
I have a text field called 'Version' in an Access database which I am
pulling into an Excel spreadsheet so that I can generate a list of
unique version numbers to populate a ComboBox.
I have no control over the content of the database and the Version
field could contain anything alphanumeric.
My problem is that if a version number happens to be, for instance,
"1.0" then the moment it is copied from the recordset to a cell it
becomes "1".
What's the simplest way to ensure the cell contents (and ultimately
the ComboBox contents) reflect exactly what is in the database?
Here is the bit of code that I'm currently using to get recordset
contents into a worksheet...
' Deposit recordset into first column of temp sheet
rs.MoveFirst
Do
With ActiveCell
.Value = rs.Fields(0).Value
.Offset(1, 0).Activate
End With
rs.MoveNext
Loop Until rs.EOF
NickH