mloucel
Member
- Local time
- Today, 14:16
- Joined
- Aug 5, 2020
- Messages
- 333
Hello Gurus;
I am almost finalizing my project, is not perfect but is mine thanks to the help of many of you, but I have an issue and I don't know what to do:
Here is the part of the form:
The user adds all those records in the ADD RECORD Form, that part is working fine.
Before those records were supposed to be grayed out IN THE EDIT RECORD FORM, so that the user couldn't change them, [per my boss] but the EU [End User] has a different Idea, and they are right many times they need to MODIFY for any reason and the way the boss wanted it was not right, so I had to re-do the form [at the LAST MINUTE] to:
1) get the Record from the DB [AuthorizationsT] and push the data to the combos
2) once the combos are fed allow the combos to change the record if the EU wants to do so.
this is were I am stuck..
I HAVE NEVER DONE ANYTHING LIKE THIS and I HAVE 0 KNOWLEDGE WHATSOEVER ON WHAT TO DO.
IPA record comes from a DB [AuthorizationsT] that contains the id of the record only (as it should), then I need to move that ID to the COMBO and display the correct name of the IPA, but once pushed to the combo, it should get the new record from the following SQL, if the user needs to do so:
HealthPlan MUST DO Exactly the same thing this as IPA does,get the current Record from [AuthorizationsT and push that to the combo], this is the SQL:
Specialty and Specialist are CASCADING COMBOS.
they should fill as well their data at the beginning of the EDIT form [Private Sub Form_Load()], get whatever record is on the [AuthorizationsT] and fill the Specialty and Specialties combos with the current record and as well if the user needs to change the record, they must be able to do so and be able to save the new data to the [AuthorizationsT].
Here is the SQL for Specialty [Should be getting the CURRENT record from [AuthorizationsT and pushed to the Combo]
Here is the SQL for Specialties [Should be getting the CURRENT record from [AuthorizationsT and pushed to the Combo]
This is the QUERY:
I know how to build the Cascade combo from "Private Sub Form_Load()" when I am doing the input of the NEW record in the NEW RECORD FORM, but here EDIT RECORD FORM, I am completely at lost, ALL this I have NO IDEA whatsoever what to do, and how to do it.
LITERALLY I DO NOT KNOW HOW TO BUILD THE CODE.
I am completely at lost here, I've tried to look for help, but I can't find anything that can come close to what I need, since I am:
1 Getting the data from a Record Database and push that to a combo that is generated from a query
2 Pushing that to a Combo that contains an ID only and display the correct data.
3 If the EU changes the record, save the new data [ID] to the AuthorizationsT from all the fields that were changed
I would much appreciate some help here, because at this point, I have been stressed for about 1 week not wanting to look for help, and is not stupid pride, is just that I wanted to exhaust all possibilities before asking for help.
If you can help me with some code or example DB I can use that would be great since my time is so short now, in case you need the FE and BE I can provide then, and I understand that many of you might CRINGE with my code but is what I have and I did it to the best of my abilities, I fully understand that many of you can do this in a heart bit, even with your eyes closed, but please do not forget, I have NEVER done anything like this and I have been learning ACCESS in a "AS WE GO" Basis.
Kindly help me!!
Maurice.
I am almost finalizing my project, is not perfect but is mine thanks to the help of many of you, but I have an issue and I don't know what to do:
Here is the part of the form:
The user adds all those records in the ADD RECORD Form, that part is working fine.
Before those records were supposed to be grayed out IN THE EDIT RECORD FORM, so that the user couldn't change them, [per my boss] but the EU [End User] has a different Idea, and they are right many times they need to MODIFY for any reason and the way the boss wanted it was not right, so I had to re-do the form [at the LAST MINUTE] to:
1) get the Record from the DB [AuthorizationsT] and push the data to the combos
2) once the combos are fed allow the combos to change the record if the EU wants to do so.
this is were I am stuck..
I HAVE NEVER DONE ANYTHING LIKE THIS and I HAVE 0 KNOWLEDGE WHATSOEVER ON WHAT TO DO.
IPA record comes from a DB [AuthorizationsT] that contains the id of the record only (as it should), then I need to move that ID to the COMBO and display the correct name of the IPA, but once pushed to the combo, it should get the new record from the following SQL, if the user needs to do so:
Code:
SELECT IpaT.IpaID, IpaT.IpaName, IpaT.IpaActive, IpaT.IpaActive FROM IpaT
WHERE (((IpaT.IpaActive)=True))
ORDER BY IpaT.[IpaName];
HealthPlan MUST DO Exactly the same thing this as IPA does,get the current Record from [AuthorizationsT and push that to the combo], this is the SQL:
Code:
SELECT HealthPlanT.HealthPlanID, HealthPlanT.HealthPlan, HealthPlanT.HPActive, HealthPlanT.HPActive FROM HealthPlanT
WHERE (((HealthPlanT.HPActive)=True))
ORDER BY HealthPlanT.[HealthPlan];
Specialty and Specialist are CASCADING COMBOS.
they should fill as well their data at the beginning of the EDIT form [Private Sub Form_Load()], get whatever record is on the [AuthorizationsT] and fill the Specialty and Specialties combos with the current record and as well if the user needs to change the record, they must be able to do so and be able to save the new data to the [AuthorizationsT].
Here is the SQL for Specialty [Should be getting the CURRENT record from [AuthorizationsT and pushed to the Combo]
Code:
SELECT [SpecialtyT].[SpecialtyID], [SpecialtyT].[Specialty] FROM SpecialtyT
ORDER BY [Specialty];
Here is the SQL for Specialties [Should be getting the CURRENT record from [AuthorizationsT and pushed to the Combo]
Code:
SELECT qrySpecialtiesEdit.SpecialistsID, qrySpecialtiesEdit.DrName, qrySpecialtiesEdit.DrPhone
FROM qrySpecialtiesEdit
ORDER BY qrySpecialtiesEdit.[DrName];
This is the QUERY:
I know how to build the Cascade combo from "Private Sub Form_Load()" when I am doing the input of the NEW record in the NEW RECORD FORM, but here EDIT RECORD FORM, I am completely at lost, ALL this I have NO IDEA whatsoever what to do, and how to do it.
LITERALLY I DO NOT KNOW HOW TO BUILD THE CODE.
I am completely at lost here, I've tried to look for help, but I can't find anything that can come close to what I need, since I am:
1 Getting the data from a Record Database and push that to a combo that is generated from a query
2 Pushing that to a Combo that contains an ID only and display the correct data.
3 If the EU changes the record, save the new data [ID] to the AuthorizationsT from all the fields that were changed
I would much appreciate some help here, because at this point, I have been stressed for about 1 week not wanting to look for help, and is not stupid pride, is just that I wanted to exhaust all possibilities before asking for help.
If you can help me with some code or example DB I can use that would be great since my time is so short now, in case you need the FE and BE I can provide then, and I understand that many of you might CRINGE with my code but is what I have and I did it to the best of my abilities, I fully understand that many of you can do this in a heart bit, even with your eyes closed, but please do not forget, I have NEVER done anything like this and I have been learning ACCESS in a "AS WE GO" Basis.
Kindly help me!!
Maurice.