17d77 putting different dates together into a single group
Sign Up |  Live StatsLive Stats    Articles 37,335| Comments 177,302| Members 19,418, Newest Ssimran| Online 482
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags
Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » putting different dates together into a single group

putting different dates together into a single group

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Single mums group needs aid Narayanjot Kaur Community Out-Reach 1 30-Dec-2009 21:51 PM
Merge data into single Word doc from single Access record CW Information Technology 3 28-Jul-2006 08:35 AM
Putting Your Faith in God Soul_jyot Spiritual Articles 1 15-Feb-2006 17:26 PM


Tags
putting, different, dates, together, single, group
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:24 AM
scubadiver's Avatar scubadiver
Guest
 
Posts: n/a
   
   
putting different dates together into a single group

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
let me explain:

I have a query that lists enquiries (one enquiry per record). Each of these
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/11831-putting-different-dates-together-into-single.html
enquiries were on a certain date. The list will start on a Friday and end on
a thursday.

I have created a column in the query so that "1" is equal to Friday and so
up to "7" equalling thursday.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11831

What I need to do is change the "2" and "3" into a "4" and leave 1,5,6 and 7
alone.

Or is there an easier way?



*







Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:24 AM
'69 Camaro's Avatar '69 Camaro
Guest
 
Posts: n/a
   
   
Re: putting different dates together into a single group

Hi.

> What I need to do is change the "2" and "3" into a "4" and leave 1,5,6 and
> 7
> alone.


Use an update query. Try:

UPDATE tblStuff
SET EnquiryDay = 4
WHERE (EnquiryDay IN (2, 3))

.. . . where tblStuff is the name of the table, and EnquiryDay is the name of
the column with the numbers corresponding to the days of the week.

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.


"scubadiver" wrote in message
news:B047257D-6F4B-432C-914C-E6642BF435CF@microsoft.com...
> let me explain:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11831
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11831
>
> I have a query that lists enquiries (one enquiry per record). Each of
> these
> enquiries were on a certain date. The list will start on a Friday and end
> on
> a thursday.
>
> I have created a column in the query so that "1" is equal to Friday and so
> up to "7" equalling thursday.
>
> What I need to do is change the "2" and "3" into a "4" and leave 1,5,6 and
> 7
> alone.
>
> Or is there an easier way?
>
>



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:24 AM
Immanuel Sibero's Avatar Immanuel Sibero
Guest
 
Posts: n/a
   
   
Re: putting different dates together into a single group


Same idea but if dealing with a query then just add another column to the
query and enter the following:

=iif([EnquiryDay] IN ("2","3"),"4",[EnquiryDay])


Immanuel Sibero



"'69 Camaro" wrote in
message news:O1spGvTlGHA.1240@TK2MSFTNGP05.phx.gbl...
> Hi.
>
> > What I need to do is change the "2" and "3" into a "4" and leave 1,5,6

and
> > 7
> > alone.

>
> Use an update query. Try:
>
> UPDATE tblStuff
> SET EnquiryDay = 4
> WHERE (EnquiryDay IN (2, 3))
>
> . . . where tblStuff is the name of the table, and EnquiryDay is the name

of
> the column with the numbers corresponding to the days of the week.
>
> HTH.
> Gunny
>
> See http://www.QBuilt.com for all your database needs.
> See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
> http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11831
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11831
> info.
>
>
> "scubadiver" wrote in message
> news:B047257D-6F4B-432C-914C-E6642BF435CF@microsoft.com...
> > let me explain:
> >
> > I have a query that lists enquiries (one enquiry per record). Each of
> > these
> > enquiries were on a certain date. The list will start on a Friday and

end
> > on
> > a thursday.
> >
> > I have created a column in the query so that "1" is equal to Friday and

so
> > up to "7" equalling thursday.
> >
> > What I need to do is change the "2" and "3" into a "4" and leave 1,5,6

and
> > 7
> > alone.
> >
> > Or is there an easier way?
> >
> >

>
>



Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:24 AM
scubadiver's Avatar scubadiver
Guest
 
Posts: n/a
   
   
Re: putting different dates together into a single group

I used a similar one to Immanuel:

Group: IIf(([diff]=2) Or ([diff]=3),4,[diff])

and it does work but I realise its not helpful for producing a real date to
put into a report.

So using your idea where exactly do I put the code but using real dates (if
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11831
possible)

cheers.



"'69 Camaro" wrote:

> Hi.
>
> > What I need to do is change the "2" and "3" into a "4" and leave 1,5,6 and
> > 7
> > alone.

>
> Use an update query. Try:
>
> UPDATE tblStuff
> SET EnquiryDay = 4
> WHERE (EnquiryDay IN (2, 3))
>
> .. . . where tblStuff is the name of the table, and EnquiryDay is the name of
> the column with the numbers corresponding to the days of the week.
>
> HTH.
> Gunny
>
> See http://www.QBuilt.com for all your database needs.
> See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11831
> http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
> info.
>
>
> "scubadiver" wrote in message
> news:B047257D-6F4B-432C-914C-E6642BF435CF@microsoft.com...
> > let me explain:
> >
> > I have a query that lists enquiries (one enquiry per record). Each of
> > these
> > enquiries were on a certain date. The list will start on a Friday and end
> > on
> > a thursday.
> >
> > I have created a column in the query so that "1" is equal to Friday and so
> > up to "7" equalling thursday.
> >
> > What I need to do is change the "2" and "3" into a "4" and leave 1,5,6 and
> > 7
> > alone.
> >
> > Or is there an easier way?
> >
> >

>
>
>

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:24 AM
'69 Camaro's Avatar '69 Camaro
Guest
 
Posts: n/a
   
   
Re: putting different dates together into a single group

  Donate Today!  
Hi.

> but I realise its not helpful for producing a real date to
> put into a report.


I'm not sure I understand your question. Do you mean that you want to
convert the numbers 1 through 7 to days of the week, i.e., "Wednesday" or
replace them with an actual date, such as 6/21/2006?

> So using your idea where exactly do I put the code but using real dates
> (if
> possible)


First, make a backup of the table, just in case something goes wrong,
because the update query will permanently change the values in that column.
(I'm assuming that this is what you want to do.) Create a new query and go
to the SQL View pane (View -> SQL View menu), then paste the code into the
window. Replace the table name and column name with the names of your table
and column. Hold off on the next step (running the query) until we clarify
exactly what you mean by "using real dates."

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.


"scubadiver" wrote in message
news:88F69204-9850-40EB-86A6-2E534E1DF4A3@microsoft.com...
>I used a similar one to Immanuel:
>
> Group: IIf(([diff]=2) Or ([diff]=3),4,[diff])
>
> and it does work but I realise its not helpful for producing a real date
> to
> put into a report.
>
> So using your idea where exactly do I put the code but using real dates
> (if
> possible)
>
> cheers.
>
>
>
> "'69 Camaro" wrote:
>
>> Hi.
>>
>> > What I need to do is change the "2" and "3" into a "4" and leave 1,5,6
>> > and
>> > 7
>> > alone.

>>
>> Use an update query. Try:
>>
>> UPDATE tblStuff
>> SET EnquiryDay = 4
>> WHERE (EnquiryDay IN (2, 3))
>>
>> .. . . where tblStuff is the name of the table, and EnquiryDay is the
>> name of
>> the column with the numbers corresponding to the days of the week.
>>
>> HTH.
>> Gunny
>>
>> See http://www.QBuilt.com for all your database needs.
>> See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
>> http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11831
>> info.
>>
>>
>> "scubadiver" wrote in message
>> news:B047257D-6F4B-432C-914C-E6642BF435CF@microsoft.com...
>> > let me explain:
>> >
>> > I have a query that lists enquiries (one enquiry per record). Each of
>> > these
>> > enquiries were on a certain date. The list will start on a Friday and
>> > end
>> > on
>> > a thursday.
>> >
>> > I have created a column in the query so that "1" is equal to Friday and
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=11831
>> > so
>> > up to "7" equalling thursday.
>> >
>> > What I need to do is change the "2" and "3" into a "4" and leave 1,5,6
>> > and
>> > 7
>> > alone.
>> >
>> > Or is there an easier way?
>> >
>> >

>>
>>
>>



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
How does Sikhi help you...
Today 15:06 PM
36 Replies, 1,017 Views
Request for assistance...
Today 09:34 AM
10 Replies, 136 Views
Occultism - Rejection in...
Today 08:44 AM
62 Replies, 2,664 Views
‘Bigoted’ Facebook...
Today 08:32 AM
1 Replies, 59 Views
Australia mulls allowing...
Today 07:30 AM
0 Replies, 45 Views
Woolwich Killing: The...
Today 06:41 AM
3 Replies, 75 Views
Panjabi
By Ishna
Today 04:40 AM
16 Replies, 314 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 03:09 AM
316 Replies, 7,651 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 03:00 AM
179 Replies, 4,550 Views
Transgenderism ... Right...
By Kaylee
Today 00:33 AM
25 Replies, 1,274 Views
Losing My Religion: Why...
Today 00:00 AM
14 Replies, 396 Views
Kirtan
Yesterday 21:24 PM
0 Replies, 42 Views
Keeping Amrit Vela
Yesterday 16:49 PM
12 Replies, 942 Views
Do you believe in...
Yesterday 15:08 PM
196 Replies, 4,118 Views
Black Sikhs?
Yesterday 06:33 AM
20 Replies, 5,924 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 15:28 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.57681 seconds with 32 queries
0