Hi,
I have a form which contains records about patients. the primiary is PatientID and is based on the national ID number.
I have compiled a query to show the patient's bill (invoice). from this query I have created a report. i have placed a button on the same form mentioned above that will open the report. right now the button opens the report and all the records are showing.
i would like it that when the user goes to a particular record in the form, the user can click on the button to preview just that record's bill and no others.
i'm using access 2000.
bajanElfi should also mention i was told that i could "fix" the query in sql, but i'm not to sure how to do that.|||Originally posted by bajan_elf
i should also mention i was told that i could "fix" the query in sql, but i'm not to sure how to do that. The simplest answer is to build a criteria that restricts the query to just the data for a particular employee or bill. Without knowing a good bit more about your application, I can't really give you any specifics. The basic process isn't tough, you just add a criteria in the query form where client_number = x or where bill_id = y.
-PatP|||hmmm... no worries Pat. i got it working. it seems i needed a piece of code inthe command button the opens the report. below is what i added.
DoCmd.OpenReport stDocName, acPreview, "", "[PatientID]=[Forms]![frmAppointments]![PatientID]"
so in fact i didn't really need sql. thanks for taking the time to look at my post anyway tho, it was greatly appreciated.
bajan elf
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment