Good morning. I've been scouring forums for the past few days trying to figure this out to no avail. I am new to Access, watching learning videos and such to teach myself in order to have a good base for a new job that I will be starting soon, so I apologize if this comes across as a dumb question.
To practice, I have put together a small database from a game that outputs data to a form using expressions (this is predominantly how the customers use Access). It is going well, but I'm stuck on one aspect. I have three unbound combo boxes that get data from three different tables, the values of which are added together in one unbound text box. The expression I have come up with for the control source of the text box is as follows:
=DLookUp("Base","ThreatRating","TRID=" & Nz([TRCBox],0))+DLookUp("Armor","ThreatRating","TRID=" & Nz([TRCBox],0))+DLookUp("Impact","FoeType","TypeID=" & Nz([TypeCBox],0))+DLookUp("Impact","ArmorsType","ArmorsID=" & Nz([ArmorCBox],0))
It works great, except that nothing shows up in the text box until all three combo boxes are selected. Is there any way, in this type of expression, to have each selection show up individually so that if nothing is selected from one combo box, the unbound text box still shows a value from the others?
Thanks for any assistance you can offer.
To practice, I have put together a small database from a game that outputs data to a form using expressions (this is predominantly how the customers use Access). It is going well, but I'm stuck on one aspect. I have three unbound combo boxes that get data from three different tables, the values of which are added together in one unbound text box. The expression I have come up with for the control source of the text box is as follows:
=DLookUp("Base","ThreatRating","TRID=" & Nz([TRCBox],0))+DLookUp("Armor","ThreatRating","TRID=" & Nz([TRCBox],0))+DLookUp("Impact","FoeType","TypeID=" & Nz([TypeCBox],0))+DLookUp("Impact","ArmorsType","ArmorsID=" & Nz([ArmorCBox],0))
It works great, except that nothing shows up in the text box until all three combo boxes are selected. Is there any way, in this type of expression, to have each selection show up individually so that if nothing is selected from one combo box, the unbound text box still shows a value from the others?
Thanks for any assistance you can offer.