I have a table tblAdditionalCharge that has around 1330 records in it now
the table has 7 fields, the 3 fields in my query
DayNo,AdittionalCharge,AdditionalChargeAmount
What I am trying to do is get my query to >Date()-360 on DayNo
and [AdittionalCharge,AdditionalChargeAmount] to be unique
SELECT DISTINCT tblAdditionCharge.AdditionCharge,
tblAdditionCharge.AdditionChargeAmount, tblAdditionCharge.DayNo
FROM tblAdditionCharge INNER JOIN tblHorseInfo ON tblAdditionCharge.HorseID
= tblHorseInfo.HorseID
WHERE (((tblAdditionCharge.AdditionChargeAmount) Is Not Null))
ORDER BY tblAdditionCharge.AdditionCharge;
Then I wanted a drop down list that had names in it that I can enter into
such as "veterinary" so any record that had the word "veterinary" in
AdditionCharge would show the records, A table would hold the words that I
want to search for or add words to or delete out
Is this possible to do and what procedure should I adopt, the record are
just for viewing when accessing a new charge amount
Thanks for any help...........Bob
Tom Ventouris said:
Hi Bob
You are missing good advice from Mr Vinson, an MVP for good reason in my
experience and opinion, throughout this thread. The answer to your last
post
is yes, with possibly some modification. It seems you are at risk of
crowding
your form with uncessary fields and code/functions which will come back to
haunt you later.
It is starting to sound like you are using the wrong tools (combo boxes)
for
the right job.
Post, in detail, exactly what you want accomplish for a detailed response
and direction to the right tools.
Tom Ventouris
Bob V said:
Tom Could you use a Dropdown Combo List to open Combos Like these two
Combos
Similar to opening Reports?...thanks for the help...Bob
Me.cmbCharge1Y.Requery
Me.cmbCharge1Y.SetFocus
Me.cmbCharge1Y.Dropdown
Me.CmbCharge2Y.Requery
Me.CmbCharge2Y.SetFocus
Me.CmbCharge2Y.Dropdown
Apologies for the repetition, I kept receiving a "fail" message.
Note the correction:
Select Case Me![ComboBoxName]
:
If you must have 4 reports, rather than one with code to pass
parameters,
try
this:
Assigne descriptive names to your reports, for the user, and put these
in
the ComboBox Value List.
In the Combo Box After Update Event:
Select Case Me![ComboBoxName}
Case is = "DescriptiveName"
DoCmd.OpenReport "rptReportName", acViewPreview, "", "", acNormal
Case is = "Next Descriptive Name"
DoCmd.OpenReport "rptReportName", acViewPreview, "", "", acNormal
and so on.....
End select
:
How do I go about setting my Combo Box to open any one of my ten
reports
i.e.: rptCharge1.....................rptCharge10
Do I put there name in the Row Source Value [Value List]
Row Source ;rptCharge1;
What would have the Event OnClick
Thanks for any Help....Bob