A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

format OXXXXXO



 
 
Thread Tools Display Modes
  #1  
Old December 30th, 2009, 11:22 AM posted to microsoft.public.access.queries
Octet32
external usenet poster
 
Posts: 92
Default format OXXXXXO

I have a field in a query called DELDAYS in the field the date reads 0XXXXX0
how can I for matt this so it will show as SMTWTHFS? This date represent the
day of the week in some case it will be different combo’s I am new to VB can
anyone help with this? thanks octet
  #2  
Old December 30th, 2009, 12:06 PM posted to microsoft.public.access.queries
raskew via AccessMonster.com
external usenet poster
 
Posts: 370
Default format OXXXXXO

Hi -

I'm a little confused.

1) Is the field an actual date/time field?

2) Given that today is Wed 30 Dec 2009, what is it that you would want to see?


Bob

Octet32 wrote:
I have a field in a query called DELDAYS in the field the date reads 0XXXXX0
how can I for matt this so it will show as SMTWTHFS? This date represent the
day of the week in some case it will be different combo’s I am new to VB can
anyone help with this? thanks octet


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200912/1

  #3  
Old December 30th, 2009, 12:56 PM posted to microsoft.public.access.queries
Octet32
external usenet poster
 
Posts: 92
Default format OXXXXXO

the field shows custmer del days as 0XXXXXO this mean monday thu friday i
would like it to show NYYYYYN or SMTWTHFS so i can match it to anther table

"raskew via AccessMonster.com" wrote:

Hi -

I'm a little confused.

1) Is the field an actual date/time field?

2) Given that today is Wed 30 Dec 2009, what is it that you would want to see?


Bob

Octet32 wrote:
I have a field in a query called DELDAYS in the field the date reads 0XXXXX0
how can I for matt this so it will show as SMTWTHFS? This date represent the
day of the week in some case it will be different combo’s I am new to VB can
anyone help with this? thanks octet


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200912/1

.

  #4  
Old December 30th, 2009, 02:37 PM posted to microsoft.public.access.queries
raskew via AccessMonster.com
external usenet poster
 
Posts: 370
Default format OXXXXXO

In A2000 and later you can use the Replace() function to convert your OXXXXXO
to NYYYYYN.
Before trying this BACKUP your DB.
Create an update query showing just the DelDays field. In the UpdateTo cell
place
Replace([DelDays], "X", "Y"). Run the query then do it a second time using
Replace([DelDays], "O", "N").

HTH - Bob


Octet32 wrote:
the field shows custmer del days as 0XXXXXO this mean monday thu friday i
would like it to show NYYYYYN or SMTWTHFS so i can match it to anther table

Hi -

[quoted text clipped - 10 lines]
day of the week in some case it will be different combo’s I am new to VB can
anyone help with this? thanks octet


--
Message posted via http://www.accessmonster.com

  #5  
Old December 30th, 2009, 03:54 PM posted to microsoft.public.access.queries
Octet32
external usenet poster
 
Posts: 92
Default format OXXXXXO

Thanks but i only need to convert to this format to querry.
i am conecting to the DB with ODBC I dont want to update the field just
chang it in the querry

"raskew via AccessMonster.com" wrote:

In A2000 and later you can use the Replace() function to convert your OXXXXXO
to NYYYYYN.
Before trying this BACKUP your DB.
Create an update query showing just the DelDays field. In the UpdateTo cell
place
Replace([DelDays], "X", "Y"). Run the query then do it a second time using
Replace([DelDays], "O", "N").

HTH - Bob


Octet32 wrote:
the field shows custmer del days as 0XXXXXO this mean monday thu friday i
would like it to show NYYYYYN or SMTWTHFS so i can match it to anther table

Hi -

[quoted text clipped - 10 lines]
day of the week in some case it will be different combo’s I am new to VB can
anyone help with this? thanks octet


--
Message posted via http://www.accessmonster.com

.

  #6  
Old December 30th, 2009, 05:24 PM posted to microsoft.public.access.queries
John W. Vinson
external usenet poster
 
Posts: 18,261
Default format OXXXXXO

On Wed, 30 Dec 2009 07:54:01 -0800, Octet32
wrote:

Thanks but i only need to convert to this format to querry.
i am conecting to the DB with ODBC I dont want to update the field just
chang it in the querry


You can do this in a select query as well as in an update query. Try:

NewDelDays: Replace(Replace([DelDays], "X", "Y"), "O", "N")

You should then be able to use NewDelDays to link to your external table.
--

John W. Vinson [MVP]
  #7  
Old December 30th, 2009, 06:32 PM posted to microsoft.public.access.queries
raskew via AccessMonster.com
external usenet poster
 
Posts: 370
Default format OXXXXXO

Thanks for that John -

I envisioned a similar solution but didn't even try it, thinking it wouldn't
work.

Best wishes - Bob
John W. Vinson wrote:
Thanks but i only need to convert to this format to querry.
i am conecting to the DB with ODBC I dont want to update the field just
chang it in the querry


You can do this in a select query as well as in an update query. Try:

NewDelDays: Replace(Replace([DelDays], "X", "Y"), "O", "N")

You should then be able to use NewDelDays to link to your external table.


--
Message posted via http://www.accessmonster.com

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.