ItIsHardToProgram
Technical User
Hey every one!
I have a question about possibilities with VBA queries. I was wondering if it was possible to strip a specific field from its few last characters in a query. The environment is access.
For example, the specific field looks like 20080512-1-5-2.
Every '-' is a seperator for different information in the same field.
Is it possible to strip the field from '-1-5-2' through a query, without modifying the actual field or creating a field. The query would return something like 20080512.
I can think of many ways of doing it through VBA, i.e. forcing the query in a virtual table and working from there, but I am really trying to figure out a more straightforward way, or if I may the "best" way of doing this.
Thanks for all your ideas and inputs. If you could just get me started on ideas, without necesserely posting the whole code, it would be much appreciated, I have some learning to do![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Ty everyone, Julien Roy
"Knowing that you know is the greatest sign of stupidity, knowing that you are ignorant is the best proof of intelligence.
I have a question about possibilities with VBA queries. I was wondering if it was possible to strip a specific field from its few last characters in a query. The environment is access.
For example, the specific field looks like 20080512-1-5-2.
Every '-' is a seperator for different information in the same field.
Is it possible to strip the field from '-1-5-2' through a query, without modifying the actual field or creating a field. The query would return something like 20080512.
I can think of many ways of doing it through VBA, i.e. forcing the query in a virtual table and working from there, but I am really trying to figure out a more straightforward way, or if I may the "best" way of doing this.
Thanks for all your ideas and inputs. If you could just get me started on ideas, without necesserely posting the whole code, it would be much appreciated, I have some learning to do
Ty everyone, Julien Roy
"Knowing that you know is the greatest sign of stupidity, knowing that you are ignorant is the best proof of intelligence.