G
Guest
Hi
I have a data base where tools can be used to more than one job.
Data are organized in two tables:
tblTools with fields ToolID (auto), ToolName, Supplier, Shared (Y,N) and
tblJobs with JobID (auto), fkToolID (related), JobInfo, StartDate, EndDate
All fields property “Required†is set to “Yesâ€
The way I want to have the data entry is by using a single form, in
continuous view, (not two forms or Jobs subform of tools) and enter data for
Tools and Jobs on the fields:
ToolName, Supplier, Shared, JobInfo, StartDate, EndDate
I want to be able to type a ToolName in a textbox or combobox and then:
I) If that tool is found in the Tools table a msgbox asks if I want to use
it again or not.
-If the answer is “yes†the tool fields are auto populated, the Shared
checkbox is auto checked and I fill the Job fields. One new job record is
created.
-If the answer is “no†the textbox or combobox is cleared and no action is
taken.
II) If the tool is not found in the Tools table, without having any question
from a msgbox, I fill the data for the tool and job. One new tool record and
one new job record are created.
The above required operation is not similar but I should say opposite to
what is performed usually by a Not In List Event. It seems to me that is very
convenient and I’m surprised I have never seen anywhere an application using
such a way.
Trying to work out on this I’ve made the query
SELECT Jobs.fkToolID, Jobs. JobID, Jobs.JobInfo, Jobs.StartDate,
Jobs.EndDate, Tools.ToolID, Tools.ToolName, Tools.Supplier, Tools.Shared
FROM Tools INNER JOIN Jobs ON Tools.ToolID=Jobs.fkToolID;
When I enter data in the query in table view everything works OK, but I am
trying for days to do it on a form with no success.
Does any expert on Access knows if it is possible and how?
Thanks for your response
GL
I have a data base where tools can be used to more than one job.
Data are organized in two tables:
tblTools with fields ToolID (auto), ToolName, Supplier, Shared (Y,N) and
tblJobs with JobID (auto), fkToolID (related), JobInfo, StartDate, EndDate
All fields property “Required†is set to “Yesâ€
The way I want to have the data entry is by using a single form, in
continuous view, (not two forms or Jobs subform of tools) and enter data for
Tools and Jobs on the fields:
ToolName, Supplier, Shared, JobInfo, StartDate, EndDate
I want to be able to type a ToolName in a textbox or combobox and then:
I) If that tool is found in the Tools table a msgbox asks if I want to use
it again or not.
-If the answer is “yes†the tool fields are auto populated, the Shared
checkbox is auto checked and I fill the Job fields. One new job record is
created.
-If the answer is “no†the textbox or combobox is cleared and no action is
taken.
II) If the tool is not found in the Tools table, without having any question
from a msgbox, I fill the data for the tool and job. One new tool record and
one new job record are created.
The above required operation is not similar but I should say opposite to
what is performed usually by a Not In List Event. It seems to me that is very
convenient and I’m surprised I have never seen anywhere an application using
such a way.
Trying to work out on this I’ve made the query
SELECT Jobs.fkToolID, Jobs. JobID, Jobs.JobInfo, Jobs.StartDate,
Jobs.EndDate, Tools.ToolID, Tools.ToolName, Tools.Supplier, Tools.Shared
FROM Tools INNER JOIN Jobs ON Tools.ToolID=Jobs.fkToolID;
When I enter data in the query in table view everything works OK, but I am
trying for days to do it on a form with no success.
Does any expert on Access knows if it is possible and how?
Thanks for your response
GL