Hi again,
Im obviously more of a novice at access than i thought because i cant wrap my head round what sounds like a simple concept, so I'm hoping the amazing people here can help.
I have a table called tblRates which stores Rate ID (Number, Primary Key), Rate Alias (Text) and Rate Amount (Currency). My form (Event Log), has fields for CLient NAme, Location, etc, as i described before.
The Rate Aliases are Rate 1, Rate 2, Special, Other and Credit Report. Other obviously implies the user is to enter the amount.
There is a dropdown for Charge Rate (which uses Charge Alias as its source) which applies to the particular event id.
I'd like this to default to the rate alias "Rate 1". However, my employer has asked that if a special rate applies to a client, that it defaults to "Special" as opposed to Rate 1. I have a table called tblSpecial which lists the 4 clients this applies to, and the special amount they are to be charged.
This means that a separate field underneath the "Charge rate" dropdown on the form for "Rate Amount" needs to be displayed, so the rate is shown, and allows for a custom amount to be input for Other. However, I dont know how to make it lookup the amount and fill in the textbox based on the dropdowns value. I had a go with DLookup but it didnt seem to work, so I must be doing something wrong.
Can you help? I apologise if I havent explained it in the best way.
Im obviously more of a novice at access than i thought because i cant wrap my head round what sounds like a simple concept, so I'm hoping the amazing people here can help.
I have a table called tblRates which stores Rate ID (Number, Primary Key), Rate Alias (Text) and Rate Amount (Currency). My form (Event Log), has fields for CLient NAme, Location, etc, as i described before.
The Rate Aliases are Rate 1, Rate 2, Special, Other and Credit Report. Other obviously implies the user is to enter the amount.
There is a dropdown for Charge Rate (which uses Charge Alias as its source) which applies to the particular event id.
I'd like this to default to the rate alias "Rate 1". However, my employer has asked that if a special rate applies to a client, that it defaults to "Special" as opposed to Rate 1. I have a table called tblSpecial which lists the 4 clients this applies to, and the special amount they are to be charged.
This means that a separate field underneath the "Charge rate" dropdown on the form for "Rate Amount" needs to be displayed, so the rate is shown, and allows for a custom amount to be input for Other. However, I dont know how to make it lookup the amount and fill in the textbox based on the dropdowns value. I had a go with DLookup but it didnt seem to work, so I must be doing something wrong.
Can you help? I apologise if I havent explained it in the best way.