No 'Mid' Function in Access XP?

DeutchBose

Board Regular
Joined
Mar 22, 2004
Messages
83
I have an AccessXP database, converted from 97, that uses the 'Mid' function in one of its queries.

Access XP doesn't recognize the 'Mid' function...is there a replacement, or some other way to do the same thing?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Mid() should work, but I've had what you've described happen before, specifically with the replace() funtion.

Anyways, you can use this in Mid()'s place, the arguments are in bold.
Left(Right([string],Len([string])-[START]+1),[LENGTH])
 
Upvote 0
This is one of Access's little bugs. Updating a db from 97 wrecks some of the references. Check out this link for details on how to fix the problem.

By the way, if you need to update another db, I'd suggest creating a new, blank database in XP and importing everything from the 97 database into it. That way, the references will be correct -- and any other issues will generate warnings at import time.

Denis
 
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,250
Members
451,757
Latest member
iours

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