MS Access unbound textbox in tabular form - Student attendance - ms-access

I am creating a DBMS for a school and in implementing student attendance, I have encountered an issue. I have a query that pulls the names of the students enrolled into classes and created a subform to contain that information. This subform has two additional fields (unbound text box and a combo box) that users will enter information to which will be updated into the attendance table using an append query.
It is with these unbound text boxes I am having problems.
Basically, when data is entered into these text boxes it updates for every record instead of just the single record.
As you can see from the picture above, adding late and 10 mins in the first line adds the same value to all records.
More screenshots below, please let me know if any additional information is required.

Related

How to get combo box selection to fill related fields with data

I have a table [inventory] with inventory items, and a bunch of columns with different information for those. Mainly, part#, description, price. I am trying to create both a purchase order form [POForm] and, and a inventory transactions form [TransactionsForm], but that one thing I've been stuck on is getting a combo box look up I use to select the part# from [inventory], to also fill my fields for description, and price for that item in my form. I need the fields that are filled to be able to have formula's run off of them, and the information to be saved into the table for that form [TransactionsTable], [POTable].
I've tried making my part# combo box include the fields for the description and price, and using =[part#].[column](x) in the other fields as a lookup, and it looks right visually, but that is apparently just a visual of that data, but technically the field is still blank, because those other fields remain empty in the table for that form, and I am not able to run a formula off the price.
As per my understanding and please correct me if I am wrong. you have a form that shows your inventory data Part# Description & price. This form has a combo box that allows you to select a particular part # to view its related record data description and price.
Now you want to click a command button after selecting a particular part # to update your transaction form and POtable.
1.you have to create a query,
2.insert the inventory table in it
3.select append from the query type in the ms access ribbon
4.a window will appear, choose the transaction table as the destination table to append to.
5.double click on the fields that you want to retrieve its data from the inventory table
6.then in the table below in the query itself in the "append to" row you will find drop-down menu including all the fields from the transaction table. choose the corresponding fields. note if the fields have the same name in both tables access will do it automatically.
7.in the criteria row type the following [Forms]![Inventory Form Name]![the name of the field in the form]. do that for each field in the happen query.
8.save the query and name it
9.go-to design view in your inventory form and create a command button, in the click on event creat macro of the following: openquery-->type the append query name
10.save and close macro builder
11.open your form, select part#, click on the button
12.access will ask you to confirm appending process. click ok/yes
13.check your transaction table to confirm that the append process was successfully performed
14.Tip if you do not want the confirmation msg of append to appear, in the click on event go to the macro builder and choose in the ribbon show all actions then in the first line of the macro builder insert setwarnings - NO
the same is to be applied for the POtable.
Anyways, I hope you find this clear and helpful but I have only one concern you do not have to append part description and price in transaction and PO tables as you already have this data in your database in the inventory table. Generally speaking no need to include the same information in multiple tables otherwise you are not benefitting from the idea of a relational database.
I hope I addressed your inquiry.

MS Access - How can I unlink text boxes in a form from their table?

I have a form that relates to different products and their feedback. The intention of the form is to add new feedback to Feedback table. Present on the form are fields that are currently linked to Products table. But I do not want to add anything to the Products table, the text fields are just there for reference.
However, when entering data into this form, I am returned with an error asking me to enter data into fields. These fields are controlled with a DLookup function. But I do not want to enter data with these fields anyway - they are just for reference.
How can I unlink these text boxes from their table, so that when entering data into this form, the discussed fields are disregarded?
Edit:
screenshot of form in design view
This is what my form looks like in design view. I would like the first seven rows to be for user reference only and to have no effect on the Products table. The final five rows and fields present in the Feedback table - I would like these to be added.

MS Access need to hide fields based on linked combo box

I have one table, let's call it "leagues". Is this table, the fields are simply the league name, and then about 15 other yes/no fields.
I then have a second table and related form. Lets call that "Games". The idea is that when the user selects any given league (which is a linked field to the first table), then I want only certain fields to show up based on the yes/no criteria.
I've found two other posts that offer some ideas, but I don't quite see my exact situation.
Hide Controls in MS Access Based on Value Field
and
Ms Access Hide and Show Fields based on combo box choice
In addition, All those other fields that may or may not be visible are all linked fields to a third table called "members". I want to ensure that when a certain member is selected in any given field, they cannot be selected in any other field for the current record. I can use validation rules on each control, but I feel there is an easier way.
Please, steer me in the right direction, and if you can offer sample code, that would help.

Split form columns not displaying correct value

I have a split form set up in Access 2007. In it, I have one combo box to select a school, and the After Update event for this combo box populates a second combo box.
The second combo box selects an item of equipment, and the query associated with it selects all equipment located at the selected school, unioned with the currently selected piece of equipment. (If the school selection changed, the box would turn blank, but actually still hold a value, so I unioned it with it's own current value)
Anyhow, the issue is that the equipment column in the split view only shows equipment values that are associated with the currently selected school as well. For example, if I have a form with schoolA and EquipmentA selected, only equipment also associated with SchoolA will appear in the Equipment column of the split form data sheet. If I change the School column to SchoolB, any rows that were populated with equipment associated with schoolA disappear, and equipment on rows associated with schoolB now show up.
Interestingly, if you click on the school column of the data sheet, this also will update the equipment column to only show equipment related to whatever school was in that row.
To summarize: changing the value of one field in my split form will change what data is displayed in the data sheet portion of the form. Clicking on the fields column in the data sheet has the same effect.
I had the same issue, as you describe. I used a workaround (i.e. used different control instead of split-form)
My Situation:since In the split-form, I was just showing the records, and not allowing users to edit the records in split form. Users could click on any record in split form, which would show in main form, and then could edit. The main purpose of this form was for the users to be able to search for the data in split form and then select and edit.
My workaround : Created a form, where I used text boxes to search, and a list view to show all the columns which were in the split form. On double click event, I added Open the form filtered with the record which was double clicked.

How do I show only the available options in a combo box on an Access form?

I'm making a reservation system on Access 2010 and I have a form that reserves a table for a customer. I just input the customer's Customer ID, date and time of reservation, and the table.
Originally, my form's layout is like this:
However my professor said it wasn't efficient because you'd have to check the database just to see if the table is still available. He suggested a dropdown list of the available tables left for reservation. Also, the tables have a format of D-# or L-# depending whether it's for lunch or for dinner.
I know how to put the dropdown list and stuff but I'm not sure if I know how to update it.
My table (database) for the reservation is just the list of the reservations made on that day.
I hope someone can understand my idea.
Take a look at the Microsoft help article here:
Basing one combo box on another
In your case the values in the combo box (for the table numbers) would be based on the current value of a text box (for the date), but the principle is the same:
The Row Source for your combo box is a query that filters the list of tables based on their availability on the date specified by the .Value of the "Date" text box. In the After Update event for the "Date" text box you tell the combo box to .Requery so it will list the available tables on the date in question.