Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-18-2023, 09:49 AM
gmaxey gmaxey is offline ADODB connection string to retrieve actual values Windows 10 ADODB connection string to retrieve actual values Office 2019
Expert
ADODB connection string to retrieve actual values
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,601
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default ADODB connection string to retrieve actual values


I have an Excel file that contains columns with mixed data formats (i.e., the first row heading is text, the remaining values are percentage, the first row heading is text the remaining rows are currency etc.


I am trying to retrieve these values as their actual displayed percentage, currency values via an ADODB connection:



strConn = "Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=" & dbPath & ";" & _
"Extended Properties=""Excel 12.0 Xml;HDR=YES;IMEX=1"";"



But it isn't working. I am getting their text equivalents e.g, $12.00 is returned as 12
5.00% is returned as .05


Is there a way to get the actual values from the Excel record fields? Thanks


Cross posted at: ADODB Get actual displayed values
Attached Images
File Type: png Sample Data.png (19.7 KB, 15 views)
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve or redo aol mail password without affecting Outlook connection? glnz Outlook 0 02-20-2022 12:57 PM
ADODB connection string to retrieve actual values Retrieve characters after nth occurence of a string veedee Excel 5 06-16-2014 03:41 PM
ADODB connection string to retrieve actual values Retrieve Values from Content Controls for hidden john s. Word VBA 1 02-21-2014 02:14 PM
ADODB.Connection.Open Provider? tinfanide Excel Programming 0 11-14-2012 04:25 AM
Changing resources against tasks with actual values joday48 Project 3 06-28-2012 05:13 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft