Help with length of text in my colums in query

mcmba

Board Regular
Joined
Feb 17, 2002
Messages
59
I need some help! I have created an Access query that creates a file that I will use to upload to another system. The system that I am sending this data to only allows 30 characters in one of the columns I am uploading to. So it is going to truncate any of the fields I send over 30 characters to 30 characters. However, I can load characters 31+ in the next column. But I don't know how to pull just the text from 31 and beyond.

For example: Here's my output in the cell:
"Antimalarial whole cell inhibitors - Malaria".

When I upload this, the system I am uploading to will truncate it to only 30 characters. So in the column next to this one in the upload I need to put:
"tors - Malaria"

How do I pull text characters at position 31 and beyond????

Anyhelp would be greatly appreciated!!! Thanks in advance!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Use the MID function, MID(Field,Starting Point,Length)
i.e
MID([FieldName],31,LEN([FieldName])-30)
 
Upvote 0
Thanks so much, I am getting an error saying "The specified field [project_desc] could refer to more than one table listed in the from clause of your SQL statement"....how do I specifiy which exact table to pull the project description from. It is three tables of my query.

Sorry to be such a novice!!!!
 
Upvote 0
Go into the Query Builder and build the expression using the Expression Builder. If you build it in there, selecting the field you wish to use, it shouldn't have any confusion over which field to apply it to.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,153
Members
452,891
Latest member
JUSTOUTOFMYREACH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top