473,378 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Invoicing for a job help

Hi there,

NeoPa and mccarthy have helped me with some table design advice previously, but I made a bit of a boo boo. It is with regards to invoicing for a job.

tblJobs
tblInvoices

Now, I have a form called frmJobs that allows me to display everything related to a job e.g.

JobID
JobRef
...
EmployeeID
...
ContractID
ClientContact
...
VenueID
,,,

etc - now the problem I initially had was my query - i had a qryJobs on my frmJobs and a qryInvoices (which extracted job information) as a subform on my frmJobs, but when I tried to add the invoice details e.g. invoice date etc, it would ask me for the JobID etc - but I wanted this information to fill automatically based on the job JUST created on the job form - but couldnt work out how.

SO, me being me, I decided to remove the foreign job info from the invoices table and put the InvoiceID in the jobs table as a lookup and added the remaining invoice info to my qryJobs (which populates the frmJobs)

*are u still with me - even I'm confused!*

Now I have somehow messed up everything - my form has locked and wont allow me to enter any new records let alone check if the invoice bit works, none of my expressions work e.g. calculations/displaying first name and surname together etc.

Is there any way I can correct this? Was it a good idea to put an InvoiceID in the tblJobs? I want to be able to enter the job details as planned, then when the job has finished, enter the invoice number, date, payment terms etc and calculate the totals...

Sorry, I know this is a bit heavy for xmas eve!

Any help would be appreciated and Merry Christmas to you all!
Dec 24 '06 #1
2 1271
nico5038
3,080 Expert 2GB
Hmm, I guess you need first to establish the way your application will have to work.
I can imagine that a Job is exceuted by multiple employees and only one invoice needs to be created.
But you also need to check or one Job could have multiple invoices.

Knowing that you can desing the table structure and let's assume that a Job has one Invoice and that you want to display on the frmJob form the employee(s) and the invoice.
In such a case just use a mainform for the Job and place for the employee(s) and the invoice(s) a subform that's linked to the frmJob's ID.

Getting the idea ?

Nic;o)
Dec 24 '06 #2
Hi there,

Sorry about the delay, I meant to reply sooner. Thanks for your advice. One job can be assigned to one person and one invoice will be sent for that job. I've now expanded things a little now anyway, managed to get the invoicing working (I put the jobID in the Invoice table) and have used this site to work out how to display an invoice for the current record - gotta love the scripts!

More problems are on the way though haha

Thanks to you and everyone's help. I'm learning honest :)

Anthea
Jan 2 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: William Roberts | last post by:
I am desiging an invoicing program that will do recurring billing as well as charging for any additional service at a given time. All charges will be service oriented. I am particularly concerned...
5
by: David B | last post by:
I have an app which includes invoicing, which is working fine. I am wondering how best to deal with the situation where the amount paid is different from the amount invoiced. Would it be best to...
0
by: David B | last post by:
Back in Dec 03 I was working on an app which included invoicing. With some help from Allen Browne I got something that has worked with no probs. I modifyed the origional app last March to handle a...
0
by: aa7im | last post by:
I need the source code for an accounting/invoicing/ledger application. Are there any C#/ASP.NET application out there that are either open source or for purchase that I can obtain and utilize for...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.