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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Expressions



 
 
Thread Tools Display Modes
  #1  
Old September 9th, 2009, 08:31 PM posted to microsoft.public.access.gettingstarted
CinCin
external usenet poster
 
Posts: 3
Default Expressions

I have created a table for our master customer list. We use weeks of the year
for services.In the old excel sheet we use to be able to add the last done
week with the cycle and would give us the next week due.
ex: Week Done 16 Cycle 4 and in a column calculate 20

I believe I need to use this =[Done]+[Cycle]
Now if this is correct not sure where to put it for it to work.
The table is in design view and I have tried this expression in the Default
Value, Validation Rule and the Valation text but keep getting an error
message when I try to save.
I thank you in advance for any help.............. :-)
  #2  
Old September 9th, 2009, 10:49 PM posted to microsoft.public.access.gettingstarted
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Expressions

Don't do in the table but in the query, form, or report.
--
Build a little, test a little.


"CinCin" wrote:

I have created a table for our master customer list. We use weeks of the year
for services.In the old excel sheet we use to be able to add the last done
week with the cycle and would give us the next week due.
ex: Week Done 16 Cycle 4 and in a column calculate 20

I believe I need to use this =[Done]+[Cycle]
Now if this is correct not sure where to put it for it to work.
The table is in design view and I have tried this expression in the Default
Value, Validation Rule and the Valation text but keep getting an error
message when I try to save.
I thank you in advance for any help.............. :-)

  #3  
Old September 9th, 2009, 10:49 PM posted to microsoft.public.access.gettingstarted
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Expressions

Don't do in the table but in the query, form, or report.
--
Build a little, test a little.


"CinCin" wrote:

I have created a table for our master customer list. We use weeks of the year
for services.In the old excel sheet we use to be able to add the last done
week with the cycle and would give us the next week due.
ex: Week Done 16 Cycle 4 and in a column calculate 20

I believe I need to use this =[Done]+[Cycle]
Now if this is correct not sure where to put it for it to work.
The table is in design view and I have tried this expression in the Default
Value, Validation Rule and the Valation text but keep getting an error
message when I try to save.
I thank you in advance for any help.............. :-)

  #4  
Old September 11th, 2009, 09:34 AM posted to microsoft.public.access.gettingstarted
Wayne-I-M
external usenet poster
 
Posts: 3,674
Default Expressions

Following on from Karl's answer.

You could just use a date field in your table (for the date when the cycles
was looked at) set the default to Date()

Also (just an idea) I would add another field to the table (number) and this
would be the number of weeks that a cycle needs looking. Set the default to
4 if you want - but you would then be able to change the repetitions if needs
for individual cycles. Up to you though.

Also I would not use dateadd w, unless you work weekends ??
Use a function to give the dateadd w just for week days (mon - fri)

You can a sample of this function here
http://support.microsoft.com/kb/115489

Good luck



--
Wayne
Manchester, England.



"KARL DEWEY" wrote:

Don't do in the table but in the query, form, or report.
--
Build a little, test a little.


"CinCin" wrote:

I have created a table for our master customer list. We use weeks of the year
for services.In the old excel sheet we use to be able to add the last done
week with the cycle and would give us the next week due.
ex: Week Done 16 Cycle 4 and in a column calculate 20

I believe I need to use this =[Done]+[Cycle]
Now if this is correct not sure where to put it for it to work.
The table is in design view and I have tried this expression in the Default
Value, Validation Rule and the Valation text but keep getting an error
message when I try to save.
I thank you in advance for any help.............. :-)

 




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 09:26 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.