Solved How do I add a calculated management field and how do I add the name instead of the number

Sarah.M

Member
Local time
Today, 18:28
Joined
Oct 28, 2021
Messages
335
Hi, Plz note, My VBA is disabled at work for security reason
I can use only Expression builder, Macros, Queries, Tables, Forms and Reports only.
1. How do I add a calculated management field (I mean Field that is not part of the table just to be shown in table)
2. how do I add the name instead of the number

Sample database has been attached
plz help!

1635466397045.png
 

Attachments

you create a Query (see qryUserSection) and use the query as recordsource of your subform.
actually there is "No Evil" in them if you know how to tame them.
 

Attachments

That is the same as what I suggested.
Join2.jpg
 
there is an alternative dlookup()?
 
as per your request, this is the SQL of your Section combobox's rowsource:

select sectionT.id, sectionT.section, DLookup("Management", "managementT","ID = " & sectionT.[management]) As Mgmt from sectionT;


this is only alternative and nobody will suggests this.
the rowsource of Section has already a Joined tables.
see the attached file above.
 
as per your request, this is the SQL of your Section combobox's rowsource:

select sectionT.id, sectionT.section, DLookup("Management", "managementT","ID = " & sectionT.[management]) As Mgmt from sectionT;


this is only alternative and nobody will suggests this.
the rowsource of Section has already a Joined tables.
see the attached file above.
Thanks!
I will try it soon once I get back at home
 
as per your request, this is the SQL of your Section combobox's rowsource:

select sectionT.id, sectionT.section, DLookup("Management", "managementT","ID = " & sectionT.[management]) As Mgmt from sectionT;


this is only alternative and nobody will suggests this.
the rowsource of Section has already a Joined tables.
see the attached file above.
Thanks I like it, can we put it in Query to make as Filed? plz see the picture
1635507327316.png
 
did you see qryUserSection on the db i uploaded.
view it in design view.
then make it the Recordsource of your subform.

that one is much simpler than:

Management: DLookUp("management","managementT","id= " & DLookUp("management","sectionT","id=" & [section]))
 
did you see qryUserSection on the db i uploaded.
view it in design view.
then make it the Recordsource of your subform.

that one is much simpler than:

Management: DLookUp("management","managementT","id= " & DLookUp("management","sectionT","id=" & [section]))
Ohhh, yes Thanks!!!
This is what I am looking for!!!
 

Users who are viewing this thread

Back
Top Bottom