In the filter it has to be whatever the field is that is bound to the Visit ID textbox:
Replace this part:
theFIlter = "VisitID = " & theRecord
with this (replacing <fielname> with your field name:
theFIlter = "<fieldname> = " & theRecord
if you are recording their username in the record, and they access the records through a form you could have this on form open:
strUser = VBA.Environ("username")
me.filter = "usernameField = " & strUser
me.filteron = true
Did you try importing your tables from the old database into my one and see if it works? I used the exact same table structure, so it should work. Let me know how that goes.
Greetings,
Have you checked that tblDocket.D_Date and
[Forms]![frmCash]![TxtD_date] are in the same format?
One of them might be date/time or US format.
Put this into the event to check them:
msgbox tblDocket.D_Date
msgbox [Forms]![frmCash]![TxtD_date]
Me thinks...
If the font is smallest and the names are not fitting, then you have to either make the chart bigger or split the staff into smaller groups (by department?) and make several charts.