Data Conversion - Help?

Sep 18, 2007

I have a table with data in the following format:

OppID Year 1 2 3 4 5 6 7 8 9 10 11 12
1 2007 $1 $2 $1 $3 $2 $3 $1 0 0 $3 $4 $2
I need to convert the data into:

OppID Date Amount
1 1/1/2007 $1
1 2/1/2007 $2
etc.
What is the best approach to complete this conversion 'on the fly', so that as the data is modified in the table, later the user can run a report (PivotTable) that uses the converted data? (Note that the day of the month is not defined, so I plan to assign each the 1st of the month).

Really would appreciate any help you can offer!

View Replies


ADVERTISEMENT

Data Conversion Help Needed

Apr 24, 2006

Hello I am a relative newbie for access and have searched many different sites hoping to find the solutions to my two (seemingly simple) problems. I thought I had found the answers several times but it is not the case. If you could possibly help I would appreciate it greatly.
First: I have a table with a field with the currency in Euros, i need to convert it into dollars and add 1 to the result. I have searched how to run calculations in access and would take the data out and put it into excel and run the calculation but I have too many rows of data and will be doing this calculation often so was hoping to find one simple solution.

Second: I have one column with text separated by a "-". I was looking to see how I could create two new fields with the first field having the data before the "-" and the second field with the data following. I found a query that allows me to separate first and last name but not a string of data separated by a -. Any help would be greatly appreciated, Brian

View 4 Replies View Related

Data Conversion Help Needed

Apr 24, 2006

--------------------------------------------------------------------------------

Hello I am a relative newbie for access and have searched many different sites hoping to find the solutions to my two (seemingly simple) problems. I thought I had found the answers several times but it is not the case. If you could possibly help I would appreciate it greatly.
First: I have a table with a field with the currency in Euros, i need to convert it into dollars and add 1 to the result. I have searched how to run calculations in access and would take the data out and put it into excel and run the calculation but I have too many rows of data and will be doing this calculation often so was hoping to find one simple solution.

Second: I have one column with text separated by a "-". I was looking to see how I could create two new fields with the first field having the data before the "-" and the second field with the data following. I found a query that allows me to separate first and last name but not a string of data separated by a -. Any help would be greatly appreciated, Brian

View 4 Replies View Related

TransferSpreadsheet - Data Conversion Error

Apr 3, 2007

I am importing an Excel file of production data into a table using the TransferSpreadsheet method. Here is a snippet of the code:

DoCmd.TransferSpreadsheet acImport, , "tblMPSDATA", _
"" & stFilePath & "", True, ""

Everything works fine except the column which contains 'Material' holds both numeric and alpha-numeric values. For example these are both material numbers: 156952 and 1238707-202. The data in this column is formatted as General. The data type for Material in tblMPSDATA is Text, 18 character length. The alpha-numeric materials are all at the end of the file. When I import, an error table is created listing the alpha-numeric materials with the error 'Type Conversion Failure'. But if I have an alpha-numeric material in the first row of data then everything is imported just fine.

I have set up a nice little popup form with a file path and command button for controlling the process of bringing in this data. I really do not want to have to add special instructions about making sure the Excel data is sorted in a certain manner prior to importing. Any thoughts on why Access is not treating everything in this column as text?

Thanks,
JAB

View 5 Replies View Related

Data Type Conversion Failure

Sep 1, 2005

Hi,
I feel a little silly bringin this up but I have gone through the solutions provided on this topic but it all doesnt seem to work.

I am trying to up date my Products table with data from two other tables (Sales and Stock Receipt). I have made sure the data types in all the tables are the same (currency) but I still get this message

"Microsoft Access did not update 5 field(s) due to a data type conversion failure."

This is the expression I'm using in the update query

IIf(IsNull(DSum("[Quantity]","Sales Detail","Sales Detail.[ProductID]=" & [Products].[ProductID])),[Products]![OpeningStockAmt],[Products]![OpeningStockAmt]-(DSum("[Quantity]","Sales Detail","Sales Detail.[ProductID]=" & [Products].[ProductID])*[Products]![CostAmountperUnit]))

View 3 Replies View Related

Text Field Data Conversion To Percentage

Jan 22, 2008

Hi all,

I would very much appreciate help with this one. So thanks in advance if anyone can help.

I have a table which has a Text Field (it has to be, I'm afraid). The data is listed as follows:
5.6%
12.23%
2.45%
etc.
I need to use these values to multiply other figures in queries. I have tried FORMAT and various other ways in the query to convert the data, but to no avail. All I get as a result is an ERROR. Anyone got any ideas?
Ginny

View 6 Replies View Related

Automate Data Type Conversion At Text File Import

Jul 7, 2005

hello once again,
I need to import a text file into an existing table in Access. The text file has been imported once and is working well and everything. However, since I had to change some of the datatypes to be able to query the table correctly, I now cannot import the text file anymore unless I change the datatype of the table itself. Since someone other than I will be doing the imports from here on out, changing the datatypes everytime is out of the question. I was looking at the TransferText event, but I didn't seem to see anything about converting data types. I can think of two options, and neither are probably possible:
1. import using the wizard. Since I didn't see anything related to the types of data, I don't think this will work...
2.import using TransferText. This doesn't seem to give me any opportunity to change the datatypes either. Is there anyway to programmatically change datatypes, or is there possibly an easier way that I'm overlooking??
thanks in advance,
*j

View 4 Replies View Related

Tables :: Data Conversion - Short Text Fields To ID Number

Jun 15, 2014

I have an old Table with Movies, Actress, Actor, & Director Fields & I have converted it to .accdb. I want to turn those short text fields to an ID number. I have built Tables for those fields(indexed no dups) with an ID field. I have over 5000 records in the original table and dont want to input those numbers by hand. I am using Access 2013.

View 5 Replies View Related

Modules & VBA :: Opening A Query With Parameters - Data Type Conversion Error

Jun 11, 2013

Here's my Goal: To open a saved query that has a parameter, setting that parameter via a VBA sub.

Here's my Problem: I was getting various errors, but after debugging my program a bit, it comes down to a "Data Type Conversion Error"

Here's my Code:

Set db = CurrentDb
Set qd = db.QueryDefs("qryMY_DATA")
qd.Parameters(0) = Me.txt_ReferenceID
Set rs = qd.OpenRecordset("qryMY_DATA", dbDynaset)

Code:
'*** Database Variables
Dim db As DAO.Database, rs As DAO.Recordset, gq As DAO.QueryDef, prm As DAO.Recordset

I've been all over the forums and tried several different approaches, all to no avail. The Query runs fine in the QDT, but kicks back an error when I try to run it from my sub.

View 10 Replies View Related

Conversion To SQL

Nov 3, 2005

I'm in the process of migrating my Access database to SQL, but am encountering problems. Firstly when I exported it I discovered that all of my Access queries had been converted to Tables. After deleting these, I attempted to cut and past the SQL code from the Access Queries to SQL's "views", which I had been taught were effectively the same thing.

However, now I come to test them I get an error that says it cannot be displayed because the query is a "view object".

What is happening here, am i doing the correct thing?

Thanks.

View 2 Replies View Related

PDF To JPG Conversion

Sep 1, 2014

I have thousands of PDFs of which I want to present a number as thumbnails on a form and allow the users to select any one and have the full PDF displayed.

The only way in which I can see this working is to have the thumbnail as a JPG image and set the On Click property to display the relevant PDF. This part is quite simple, the problem I have is converting the existing PDFs to JPGs.

Any way of converting PDFs to JPGs using VBA code?

View 6 Replies View Related

Date Conversion

Jun 10, 2005

I have a numeric month, as in 1 for January. I want to convert 1 to January. Any advice on the syntax?

View 1 Replies View Related

Date Conversion

Nov 18, 2005

I'm imported data from a csv file. The dates stored in there are in a dd-mm-yyyy time format. How can I work with this since Access's date format is just mm/dd/yyyy? I imagine I need to do some sort of conversion? Does Access provide anything for me to do this?

View 6 Replies View Related

SQL Conversion Tool

Jan 3, 2006

Does anyone have a Jet to ANSI SQL conversion tool they could either send me or recommend:confused:

View 2 Replies View Related

Undo Conversion From 97 To 2K

Feb 17, 2006

We have an mdb back end on our server with read / write permissions for several approved users. One of them (don't know who yet) has converted the mdb file from 1997 to 2000. Is there a way to undo this? :o (a few have both versions on their machines which is why this was possible to begin to with)

We have had this set up for almost four years now, with no issues might I add but always knew in the back of my mind something like this would happen.

Thanks

View 1 Replies View Related

Access To VB Conversion

Mar 24, 2006

Hi,

I have been tasked with updating an Access 97 database with several forms that would take me a good while to recreate.

I wondering if there is a way to convert them from 97 to either VB6 of VB.NET that is free of charge to me. All the solutions I have come across thus far cost money, and it is not possible for me to do this.

I have tried exporting the forms to an external file but it won't let me save them as a file type that my VB6 installation can open.

Cheers
Murray

View 3 Replies View Related

Conversion Error

Apr 22, 2006

Hello,
Its been a long time since i've been in this forum. I have a question about a conversion error i received not sure whats its about

i'm converting from access 97 to 2000. i ran the access 2000 conversion utility and then the following appeared and the conversion error table

Object TypeObject NameError Description
TableMSysObjects-1611: Could not find field 'Description'.


It looks like the database is fine

View 3 Replies View Related

MS SQL Conversion And Deployment

Jul 31, 2006

Hi guys, I hope somebody can give me a quick step-by-step.

I've nearly completed a program written in Access and have started to venture into marketing the program to a local company. When asked what other modifications they would like to see i was sent an email stating;

"A major item would be to deploy in MS SQL. You should be able to do that free of charge with the low tier version of SQL."

I had a feeling this would come up, but I don't want to sound like a total idot when talking to these folks... I really have no true understanding of what they are asking, but I suspect it refers to conversion from jet. Question: Is this a reasonably easy modification? What do I need to purchase? Would I be better off telling them the program is 'as-is'? Can this be easily done by someone who has never done it before? I'm sure other threads addressed this issued but I would truly appreciate a full understanding of my specific problem. Thanks, Scott.

View 10 Replies View Related

Access To VB Conversion

Feb 11, 2007

Considering the difficulties in packaging Access software, I am wondering about the feasibility of converting my Access project to VB and distributing that instead. Has anyone done this and if so how difficult would it be. Does it mean a complete rewrite or can I use existing forms, reports and coding etc.

View 12 Replies View Related

Number Conversion Help

Jun 10, 2007

I am in the process of building a table on Access 97 where one column will have a list of various buildings. The problem is I will need to import a spreadsheet from Excel 97 into the Table, and although the spreadsheet will match the Access table in terms of column headings, it's data is numerical ie a number has been assigned for each buliding instead of the building name. I need the Access table to show the building name instead of the number.

Is there a validation rule I could use when creating the Access table where a number will = a specific building name. ie 1= Lunar House 2= Apollo House 3 = Mackenzie House etc. So when it does come to importing my spreadsheet the numbers will show as buildings.

Hope you can help....many thanks

Russell from UK

View 2 Replies View Related

Date Conversion

Jun 10, 2005

I have a numeric month, as in 1 for January. I want to convert 1 to January. Any advice on the syntax?

View 2 Replies View Related

Conversion / Format Help

Sep 6, 2005

I have 2 questions that I think maybe similar.

First Question
When building a Select query through query builder, is there a function or a way I can convert the field, fldWebSite, which is of the datatype Hyperlink to text? The problem I am having is that when I export the results to a csv or txt file, the field instead of saying "www.website.com" turns into "www.website.com#http://www.website.com#"

Second Question
When building a Select query through query builder, How do I convert a field that is of the type currency into a fixed 2 dec. number? Inother words, I get "$1,234,567.00" when what I really want is "1234567.00".

View 1 Replies View Related

Help With LIKE Syntax Conversion

Sep 11, 2006

Hello

I'm trying to convert my exsting LIKE Command to search Contians a word.

Example currently it will search for word starting with word in the search box.

I type in 2006, it will only look for project names starting with 2006.

I would like to Motify the search to "Contain" 2006 in the field anywhere.

Here's the code I like to convert.

"SELECT * FROM [qryProjects]" & "[PROJECT] LIKE """ & Me.txtSearchString2 & "*"" AND "

View 2 Replies View Related

Date Conversion

Jan 12, 2007

I have a time stamp field from an Oracle database that I want to convert to a regular date field in my Access query so that I can pull data from the table base on start and end date.
The time stamp field is formatted as: 09/19/2006 03:16:00 PM

In my query I have tried the following formatting:

1. DateRcvd: Format((Left([time_stamp],10)),"mm/dd/yy")
or
2. DateRcvd: Format([time_stamp],"Short Date")

Without criteria I get all the records in the following format:

1. 09/19/06
2. 9/19/06

Dates in the table are from 06/01/06 to current date 07.

Using the following criteria - I get varing results but never what I want. For example, using format #1, if I enter 09/16/06 and 01/10/07 I get everything for 07 and nothing for 06
If I use format #2, I get everything for 9/16/06 (no other records) and everything for 07

Criteria:
Between [Forms]![frmDateRange]![StartDate] And [Forms]![frmDateRange]![EndDate]


Any suggestions?:confused:

View 5 Replies View Related

Parameter Conversion

Apr 6, 2007

Hi Guys,

I am using MS Access 2007 and have the following query:

SELECT HoursLostThroughAccident
FROM Accidents
WHERE AccidentDate LIKE ? +'%'

The error I get after selecting values from a drop down list like 2001 or 2002 is:

'Failed to convert parameter values from a string to a datetime'

Is there a way that access converts the values like 2001 to something like
01.01.2001 and the values which have dates that are in the year 2001 will be displayed?

Thanks for any suggestions,

Phil

View 2 Replies View Related

Conversion From 97 Problem

Sep 3, 2004

I have this code in an Access97 database that works just fine. But it doesn't like it in Access2003. Any ideas of what the problem is?
Thanks in advance - John
_______________________________________

' this adds date checking

If Not IsNull(Me!StartDate) Then
If ArgCount > 0 Then myCriteria = myCriteria + " AND "
myCriteria = myCriteria + " [Main Table].[Date] >= #" + Me!StartDate + "#"
ArgCount = ArgCount + 1
End If
If Not IsNull(Me!EndDate) Then
If ArgCount > 0 Then myCriteria = myCriteria + " AND "
myCriteria = myCriteria + " [Main Table].[Date] <= #" + Me!EndDate + "#"
ArgCount = ArgCount + 1
End If

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved