Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add string and format decimal

Status
Not open for further replies.

medic61

IS-IT--Management
Aug 30, 2003
15
US
Fairly new to Access 2000. I have a large database, I need to extract 5 fields from my products table. I then need to format them as to export to a .csv file to then upload to Froogle.

I need to add ie. in front of the image url field. This is need #1.

2. I need to format the price field, which is now 1995 to 19.95 How would I add the decimal 2 places in and not just add 00's to the end?

thanks!
 
Hi

I need to add ie. in front of the image url field. This is need #1.

2. I need to format the price field, which is now 1995 to 19.95 How would I add the decimal 2 places in and not just add 00's to the end?

for point 2, make a query, include the coluns you want to export, for the Price, make it a calculated column eg MyPrice:CCur([Price]/100)

where [Price] is the name of the column in your table which holds the price

so do not understand your first point

Hope this helps

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
I'll give your suggestion a try! Thanks.

To clarify the first point:
table: Products
Field: ImageURL

sample data /images/pic1.jpg

I need to add in front so that when I export as csv, it would show as:


Would a trim command actually work even though I'm not trimming?

Thanks again.
 
Hi

Why not just type it in?

OR if it applies to lots of records an update query

UPDATE MyTable SET MyCol = " & [MyCol]

with a WHERE clause if required to limit the scopy of the update

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top