Access 2003 help on building a form with both static and dynamic data
I have a report that 1/2 of the data is pulled from oracle 8i via ODBC. I can do that :-), the next step is the problem, i have built a table with fields just like the attached screen shot. What we would like is a form or report where we can manually add the start finish times and other text, and have it save this data in a dynamic table linked by order number and part_ID to look just like the screen shot so all the boxes on the right will be dynamic. TIA Bill BacklogAccessReport1.jpg
Microsoft Access
Last Comment
wallis34
8/22/2022 - Mon
Jeffrey Coachman
wallis34,
You can create a table in Access that has the same key field as the Oracle table.
Then link it to the Oracle table in a query.
Then create a form from this query.
Then you should be able to update the needed data directly.
JeffCoachman
wallis34
ASKER
So rather than having a report like the attachment, I would want to make it a form? If so, is there a way to like port over the report into a form, keeping the formatting and etc? Thanks!
Jeffrey Coachman
First make the query and see if it works
You can copy the report controls to a form by doing this
Open the report in Design View
Click: Edit-->Select All
Open a new, blank form in design View.
Click: Edit-->Paste
Now it might not be perfect, and you will still have the Control Sources and the RecordSource to deal with.
Thats cool, i can try that. I have the query. What i did was created a make table query first, ran that and then set the primary key on Part_ID and the made table seems to link with Oracle tables. What i am most unsure of is how to build the form in a way that the fields are dynamic. what is the control source and record source syntax?
OK i copied over the report fields, they seem all broke. I think i need to somehow group by Work_Order_ID as on the report. How do i do this in Form? I have attached a screen shot looking at both the form and report field property sheet. Let me know if you would like to see any further info to better help my sorry butt. TIA Bill BacklogForm1.jpg Backlogreport1.jpg
Jeffrey Coachman
Sorry, I got the Objects mixed up.
For some reason I thought you were copying a report to another report.
First things first.
Did you build the query?
Does it function the way you want?
wallis34
ASKER
built the query, it seems OK, When u say function the way i want it too,,, it returns what i need, and the fields that need to be linked to the form have no data, so as far a s the query it is good.
Using a update query? i know how to do that, that is not what i want to do. Here is except from first post: "What we would like is a form or report where we can manually add the start finish times and other text, and have it save this data in a dynamic table linked by order number and part_ID to look just like the screen shot so all the boxes on the right will be dynamic. TIA Bill" Sorry but this seems frustrating, i appreciate your help, this is complicated i know.
Jeffrey Coachman
You say:
"Using a update query? i know how to do that, that is not what i want to do."
OK, so you do not want to update anything, great.
Then you say:
"manually add the start finish times and other text"
Well, adding start and finish times and "Other text" IS Updating data?
So, based on my sample what are you needing to do?
wallis34
ASKER
how to set the Control Sources and the RecordSource , that allows users to input text in the fields of the LSI_User_table. It looks like the form has lost all the links that the report had. Is there a way to view the report and have the fields updatable?
Jeffrey Coachman
Does the table SysAdmin_Part have an Autonumbering Field? (ID)
Then as I see it, in order for this One-To-One system to work, one table has to be the "Lead" table.
This is the table that will create the Primary Key Value and populate that value into the other table.
In your situation, what is the "Lead Table"?
JeffCoachman
wallis34
ASKER
Ahh yes, i have already done this, i think it works. i attached the SQL. I don't know how to get the form to layout like the report, allowing the correct fields to be dynamic. I also attached a screen shot with linked table LSI_User_Input, this is the table with the fields that i want to be able to dynamically update. SQLBacklogQuery.txt QueryBacklogReport.jpg
If you "Creata a record, does it generate the coresponding Key Value in the other table?
And can you create the coresponding record in the "Other" Table?
wallis34
ASKER
I do not know how to do this, can you note the steps?
Jeffrey Coachman
Don't know how to create a from?
Or don't know how to create a new record?
You can create a table in Access that has the same key field as the Oracle table.
Then link it to the Oracle table in a query.
Then create a form from this query.
Then you should be able to update the needed data directly.
JeffCoachman