Sorry John, my bad explaination. What i am doing is time sheets for employees
to charge there time against a job. The brackets are just my way of explaning
that the fileds are in a table that i use.
The reason that i use the customer name is to change the charge rate. Say we
have a warrenty job to do, the cost and sell rate have to be the same and if
i have peron on leave without pay then the cost and sell rate are zero. If
these 2 requiremtns are not made then i just allow the normal cost and chareg
rate to be applied to the job.
Sorry not putting it clear enough. I see the basic layout of the code and i
think i can work that so i achieve what i want to achieve.
Many thanks again
Kevin
P.S i probalbly will ask more silly questions soon lol
>>My next problem that I need to address is using a IF command.
>>
[quoted text clipped - 30 lines]
>
> John W. Vinson [MVP]
>Sorry John, my bad explaination. What i am doing is time sheets for employees
>to charge there time against a job. The brackets are just my way of explaning
[quoted text clipped - 4 lines]
>these 2 requiremtns are not made then i just allow the normal cost and chareg
>rate to be applied to the job.
Then I'd suggest that you NOT do this in code. Instead, consider storing each
customer's charge rate in the Customers table, and use it in your query; and
have a job-type field, with perhaps an IIF([JobType] = "Warrenty", 0,
[Customers].[Rate]) expression in a query to select the rate. It's not
necessary to use VBA code to do this, and it's certainly not necessary or
appropriate to hardcode table values in the code!
John W. Vinson [MVP]
Kevin_melb - 22 May 2007 02:44 GMT
Ok Thanks Joh I will head down that path and see how i go
Kevin
>>Sorry John, my bad explaination. What i am doing is time sheets for employees
>>to charge there time against a job. The brackets are just my way of explaning
[quoted text clipped - 10 lines]
>
> John W. Vinson [MVP]