Necronic
Staff member
I was thinking of writing this into the programming section, but I guess that's not really what this is for. I've been working on a database at work for the last couple months whenever I have a free minute or two, and I am really starting to hit a brick wall.
I have the data in tables, and I can hand write/modify my queries to get the info I need. But now I need to start getting it useable for other people, and that won't be an option. So I have finally started screwing around with Records/Forms, and am having a hell of a time making it work.
Here's my current form I am working with. It's for a batch chemical reactor.
Datasource -
General Data - 1 record per reactor run
RunData - Many to 1 relationship with "Generaldata.runnumber". Contains 100 some odd points of temperature,
gas flows etc for each run in General Data
I've bundled the rundata into a query ("runquery") with a parameter for the "runnumber".
On to the form.
The form has a combobox tied to GeneralData.Runnumber. User should be able to select a specific run with this. Which leads me to my first problem:
1) Control Source - If I set the control source for the combo box to GeneralData.Runnumber then I get the list of runs, but I am unable to select a run or type anything into it. That field isn't locked or anything, anyone can edit it.
I was able to get around this by removing it as the control source and just including it as the Row Source. With the combo box as the row source, I went back to the query "runquery" and linked the parameter to the combobox.
So this means that when someone scrolls through and selects some item on the combo box it allows the runquery to find a specific run based on what's in the combo box.
Follow me so far?
I'll write more later, got to get back to work.
I have the data in tables, and I can hand write/modify my queries to get the info I need. But now I need to start getting it useable for other people, and that won't be an option. So I have finally started screwing around with Records/Forms, and am having a hell of a time making it work.
Here's my current form I am working with. It's for a batch chemical reactor.
Datasource -
General Data - 1 record per reactor run
RunData - Many to 1 relationship with "Generaldata.runnumber". Contains 100 some odd points of temperature,
gas flows etc for each run in General Data
I've bundled the rundata into a query ("runquery") with a parameter for the "runnumber".
On to the form.
The form has a combobox tied to GeneralData.Runnumber. User should be able to select a specific run with this. Which leads me to my first problem:
1) Control Source - If I set the control source for the combo box to GeneralData.Runnumber then I get the list of runs, but I am unable to select a run or type anything into it. That field isn't locked or anything, anyone can edit it.
I was able to get around this by removing it as the control source and just including it as the Row Source. With the combo box as the row source, I went back to the query "runquery" and linked the parameter to the combobox.
So this means that when someone scrolls through and selects some item on the combo box it allows the runquery to find a specific run based on what's in the combo box.
Follow me so far?
I'll write more later, got to get back to work.