G
Guest
Hi all,
I would like to read data from an Excel file and add it to a table in Access
2002.
Unfortunately the data I read from Excel is always suffixed with two
'square' characters, so I cannot process it in Access properly.
For example:
If the value of an Excel cell is "ABC", the value that Access returns via
DDErequest is always suffixed with two strange square characters. A statement
in Access that looks for the value "ABC" will never evaluate correctly.
Also, when my code gets to the end of the Excel list (i.e. a blank cell) the
value returned by DDErequest is not null, but again is two square chars.
Can anybody help me process this data correctly?
Is there a char conversion I should apply to the returned value?
Or, is there a better way to read Excel data than DDEInitiate & DDERequest?
Sorry if this is really basic, but I am quite new to this.
Thanks in advance.
-njh
p.s. here's a very basic example of what I'm doing...
**
Dim intchan1 as Double
Dim myRIC as String
intchan1 = DDEInitiate("Excel","Rates.xls")
myRIC = DDERequest(intchan1, R2C1)
**
I would like to read data from an Excel file and add it to a table in Access
2002.
Unfortunately the data I read from Excel is always suffixed with two
'square' characters, so I cannot process it in Access properly.
For example:
If the value of an Excel cell is "ABC", the value that Access returns via
DDErequest is always suffixed with two strange square characters. A statement
in Access that looks for the value "ABC" will never evaluate correctly.
Also, when my code gets to the end of the Excel list (i.e. a blank cell) the
value returned by DDErequest is not null, but again is two square chars.
Can anybody help me process this data correctly?
Is there a char conversion I should apply to the returned value?
Or, is there a better way to read Excel data than DDEInitiate & DDERequest?
Sorry if this is really basic, but I am quite new to this.
Thanks in advance.
-njh
p.s. here's a very basic example of what I'm doing...
**
Dim intchan1 as Double
Dim myRIC as String
intchan1 = DDEInitiate("Excel","Rates.xls")
myRIC = DDERequest(intchan1, R2C1)
**