rhettblaine
New Member
- Joined
- Oct 3, 2013
- Messages
- 29
- Office Version
- 365
- Platform
- Windows
Hello all!
I had a column in my Access table that contained this formula:
WGCategory:Left([Workgroup],Len([Workgroup])-5)
The purpose is to show only a string before a - (dash) from a column that contained the following data in a column called [Workgroup]:
[Workgroup]
xxxxx-1504
xx-xx-1504
xxx-1504
xx-1504
xxxxxxx-1504
etc.
However, this formula no longer works because of an update. It gives me the following error:
[microsoft][odbc sql server driver][sql server]invalid length parameter passed to the LEFT or SUBSTRING function. (#537)
My understanding is that it could be 2 reasons:
1) I'm not connected to the SQL Server that parent table is connected to
2) The formula is giving a negative value
Question: Is there an alternative to the formula above where I am able only to retrieve the information before "-1504"?
Thanks!
I had a column in my Access table that contained this formula:
WGCategory:Left([Workgroup],Len([Workgroup])-5)
The purpose is to show only a string before a - (dash) from a column that contained the following data in a column called [Workgroup]:
[Workgroup]
xxxxx-1504
xx-xx-1504
xxx-1504
xx-1504
xxxxxxx-1504
etc.
However, this formula no longer works because of an update. It gives me the following error:
[microsoft][odbc sql server driver][sql server]invalid length parameter passed to the LEFT or SUBSTRING function. (#537)
My understanding is that it could be 2 reasons:
1) I'm not connected to the SQL Server that parent table is connected to
2) The formula is giving a negative value
Question: Is there an alternative to the formula above where I am able only to retrieve the information before "-1504"?
Thanks!