Hi, I hope someone can help me here! I´ve posted this in a couple of online forums already and no-one has got back to me so I thought I would try my luck here, where I've had success before (I lost your URL so didn't come here first!!) I'm still pretty new to Access and don't do any of that coding stuff, so please bear this in mind if you write back to me. I am a simple soul and SIMPLE is the key word here
I have just started my own business and have a database of customers set up in Access 2010. I also have a receipts form and I created a Receipts Query, linking the customer ID's and making the Receipt ID the primary key. Finally, I have a receipt letter in Mail Merge, which links to the Receipts Query. Pretty basic I know, but it works for me until I learn more about Access. The problem I have is this............
Until a few days ago, the Receipt query worked fine in Mail Merge. If I entered a receipt in line 100, I could go to Mail Merge and ask it to print record 100 and it would do so. Now it doesn't. It does this - and I hope I can explain it well.......
If customer number 1 had 6 receipts and his receipt numbers are 1, 22, 25, 67, 69 and 94, where before I could put in 94 and it would print that out for customer number 1, now it doesn't. He now has receipts from numbers 1 - 6. It appears to have bunched all his receipts together numerically. If he buys something today and he should have (the next) receipt number 101, instead it will add it to the end of the 6 he already has and will make it receipt number 7, bumping all the other receipt numbers up, even though he is entered into receipt number 101. Similarly, if customer number 60 - a new and unique customer - comes and buys something, he will have the next receipt on the block - 101 in this example. As he is the latest customer, it will let me print that out at 101, but if an earlier customer then comes back and buys something else, then despite now being receipt number 102 on the Receipts list, it will slot it in after his previous set of receipts, making the last (unique) customer receipt number 102 and not 101 as I would have printed it out earlier.
I can't see what I've done wrong. It was working fine until a few days ago and now it just appears to have done this. I'm sure that it's just a button I've inadvertently hit or something, but I can't for the life of me work out what I've done. If anyone can help, I would be extremely grateful for, while I can still print out receipts, it's getting more and more complicated to do so as each person buys something. I have to ask Mail Merge to create receipts for all people and then work out what number receipt I need to print!!!!
Here´s the SQL Code from the Receipts query if you need it
SELECT Receipts.Date, [Personal Details].[1st name], [Personal Details].[1st Surname], [Personal Details].[2nd Surname], Receipts.Course, Receipts.[Amount Paid], Receipts.Month, Receipts.Year, [Personal Details].Current
FROM [Personal Details] INNER JOIN Receipts ON [Personal Details].ID = Receipts.CustomerID;
Thanks in advance and please remember........I´m simple!!!