Jump to content
Sign in to follow this  
Sarah Jayne Davies

adding together the contents of the same field from various records

Recommended Posts

Hi. I have created a FM database on a friend's Mac to record invoices that I receive from one employment agency. I have fields for invoice number, staff name, no. of hours and hourly rate, milage, and the cost which is a calculation field.

Sometimes, I have up to five records with the same invoice number and date, but different work dates, hours worked etc as several days may be on one invoice.

I want to create a field that adds the end total cost of each field that shares the same invoice number but am struggling.

I would also be interested to know if it is possible to make FM stop asking for a "date paid" if an invoice has not been paid. I tried to attach a copy with false names to demonstrate but this website wouldn't allow me to.

If anybody has any advice, I would be extremely grateful.

Thanks

Sarah

Share this post


Link to post
Share on other sites
comment    1,372

tried to attach a copy with false names to demonstrate but this website wouldn't allow me to.

Zip your file and try again.

Share this post


Link to post
Share on other sites
comment    1,372

When you receive an invoice, like Invoice #1 in your file: wouldn't it be easier to enter the common data once into a table of Invoices (1 record) and then enter the three line items into a portal?

Share this post


Link to post
Share on other sites

No, because one invoice may contain several days all worked by the same employee. If Mrs X works on Monday, Tuesday, Friday and Saturday in one week, all of those shifts will go onto one timesheet, and therefore one invoice with the same number as the timesheet. I then use the invoice / timesheet number as the reference when paying that invoice via Barclays online banking, making it much easier to do my end of year accounts.

When I am checking bank statements and older invoices, I can easily find the information needed by searching for the invoice number. If there was a problem on a particular day, I can also very easily see who was working.

Wouldn't having each entry from one timesheet mean that each record would have to have many more fields to accommodate what could be seven shifts? Would that be what you would do?

I have been wondered whether an IF STATEMENT could be used?

Share this post


Link to post
Share on other sites
comment    1,372

No, because one invoice may contain several days all worked by the same employee.

That's precisely why the answer should be yes. Have a look at the attached file - hopefully it will all become clear.

WorkSheets.zip

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.