Hello Folks,
I'm stuck again!
I have made 2 queries to place on a main report (Account) as sub reports, one to show work carried out in the current month and one to show booking information (arrivals) in the current month. They both use the same structure and number one works fine. Number two (Bookings) will not pull all the records for the current month, the joining field is the customer code which is a 3 character field in all 3 tables. The work sub report shows a 001 entry but the bookings table not, it only starts with the 002 entries. There is an a record in all three tables for 001 in the current month. Weird.
A maybe related problem is that every now and again, the query for bookings shows an '#error' emessage for the calculated query field
Code:
RetailLinen: Switch([Limpcode]=0,0,[LimpCode]=1,6.5*[ChgWks]*[Pax],[LimpCode]=2,[ChgWks]*[Pax]*11,[LimpCode]=3,[ChgWks]*[Pax]*13,[LimpCode]=4,[ChgWks]*[Pax]*6.5 )
This is also weird because it happens maybe once every 5 to 10 times I run the query.
Thanks for looking.