Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / September 2005

Tip: Looking for answers? Try searching our database.

ADO query returns an integer from string field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
EricC4S - 23 Sep 2005 08:20 GMT
The original data is a query, for which I am subsequently performing an SQL
query upon it. The field in the original query dataset is a String or
Character, yet when I perform an ADO SQL and print our using Debug.Print the
output is an integer. The query field is definitely a String, it prints out
as such in Print Preview. Where am I going wrong?
David C. Holley - 23 Sep 2005 10:19 GMT
Please post the Code and if possible a copy & paste of the immediate
window. Also recheck the ADO statement. I would gather that its a
problem with the code. Characters don't just magically switch to numbers.

> The original data is a query, for which I am subsequently performing an SQL
> query upon it. The field in the original query dataset is a String or
> Character, yet when I perform an ADO SQL and print our using Debug.Print the
> output is an integer. The query field is definitely a String, it prints out
> as such in Print Preview. Where am I going wrong?
EricC4S - 28 Sep 2005 08:01 GMT
Thanks David. It appears the problem was due to the query storing the primary
key which was indexed to a data table. I was printing out the primary key in
the query  but I was looking at joined reference in Dataview.  

> Please post the Code and if possible a copy & paste of the immediate
> window. Also recheck the ADO statement. I would gather that its a
[quoted text clipped - 5 lines]
> > output is an integer. The query field is definitely a String, it prints out
> > as such in Print Preview. Where am I going wrong?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.