If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Form lookup with event attached (based on value)
I'm new to access and haven't gotten to know programming code yet. I'm just
learning how to build a database with access tools. I've built a .accdb database (for our Real Estate investment company) that allows a non-access person to navigate the database using forms. My problem: I have a form with a lookup.. listing status of a property (Schudule Repairs, Repairing, Listed, Sale Pending, Hold, Closed). I would like an event that when "Closed" is selected, moves the tab to a field that asks for "Closed Date". The macro I build is condtional with a "goToControl" action. I get a error message; "...the component doesn't make the property or method available for Automation operations.." What does this error message mean? Any suggestions on how to build this event are greatly appreciated!! Please help!! -- Earth 2 Web |
#2
|
|||
|
|||
Form lookup with event attached (based on value)
One thing to be aware of is that you can't set focus to a field.
You have to set focus to the control (text box, combo box, etc.) If the name of the control is different than the field name, you'll need to make sure that you use the control name. -- _________ Sean Bailey "Carrena" wrote: I'm new to access and haven't gotten to know programming code yet. I'm just learning how to build a database with access tools. I've built a .accdb database (for our Real Estate investment company) that allows a non-access person to navigate the database using forms. My problem: I have a form with a lookup.. listing status of a property (Schudule Repairs, Repairing, Listed, Sale Pending, Hold, Closed). I would like an event that when "Closed" is selected, moves the tab to a field that asks for "Closed Date". The macro I build is condtional with a "goToControl" action. I get a error message; "...the component doesn't make the property or method available for Automation operations.." What does this error message mean? Any suggestions on how to build this event are greatly appreciated!! Please help!! -- Earth 2 Web |
#3
|
|||
|
|||
Form lookup with event attached (based on value)
What actions should I have to make this work?
I have my conditional statement, followed by "GoToControl" action. What am I forgetting? -- Earth 2 Web "Beetle" wrote: One thing to be aware of is that you can't set focus to a field. You have to set focus to the control (text box, combo box, etc.) If the name of the control is different than the field name, you'll need to make sure that you use the control name. -- _________ Sean Bailey "Carrena" wrote: I'm new to access and haven't gotten to know programming code yet. I'm just learning how to build a database with access tools. I've built a .accdb database (for our Real Estate investment company) that allows a non-access person to navigate the database using forms. My problem: I have a form with a lookup.. listing status of a property (Schudule Repairs, Repairing, Listed, Sale Pending, Hold, Closed). I would like an event that when "Closed" is selected, moves the tab to a field that asks for "Closed Date". The macro I build is condtional with a "goToControl" action. I get a error message; "...the component doesn't make the property or method available for Automation operations.." What does this error message mean? Any suggestions on how to build this event are greatly appreciated!! Please help!! -- Earth 2 Web |
Thread Tools | |
Display Modes | |
|
|