By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,397 Members | 1,467 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,397 IT Pros & Developers. It's quick & easy.

MSSQL to ACCESS Problems

P: n/a
Hi

I have a access data base with a event title field and wish to only
return say 20 characters, BUT I need it to return to the last space so
If the field contained

"The Shrewsbury" Flower Show the result would be "The Shrewsbury"

I have done this code in mssql but doesnt work in access here is the
code I used

Select LEFT(DB_Field, CHARINDEX(' ', DB_Field, 50) ) as DB_Field
from dbo.DATABASE

Thanks In advance!!
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Check Help on the Left and InStr functions in Access.

"Keenan" <ni**@21stcd.com> wrote in message
news:55**************************@posting.google.c om...
Hi

I have a access data base with a event title field and wish to only
return say 20 characters, BUT I need it to return to the last space so
If the field contained

"The Shrewsbury" Flower Show the result would be "The Shrewsbury"

I have done this code in mssql but doesnt work in access here is the
code I used

Select LEFT(DB_Field, CHARINDEX(' ', DB_Field, 50) ) as DB_Field
from dbo.DATABASE

Thanks In advance!!

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.