Questions tagged [ms-access-forms]
This tag should be used for questions concerning forms & form controls in MS Access.
188
questions
0
votes
1
answer
29
views
Microsoft Access - don't find newly created form in VBA Project Explorer
I am new to MS-Access / VBA (inherited an old project). I just created a form with buttons and text boxes etc. I was expecting it to appear in the VBA project explorer window, but it doesn't. I need ...
0
votes
1
answer
31
views
How do I fix my code so I don't receive an error when opening a backup file that was created automatically?
When I open the backup file created from the code, I get this message:
If ‘AutoExec’ is a new macro or macro group, make sure you have saved it and that you have typed its name correctly.
The code ...
0
votes
0
answers
26
views
access vba sql-string with "'"
my second question for my baptisme app.
I made a form with two comboboxes to search the name en first name of a child.
The problem is when a ' character comes in the name I get an error. I think I ...
0
votes
0
answers
19
views
Get values from text/combo boxes on form to different table
Dim strSQL As String
Dim strSQL1 As String
Dim strSQL2 As String
Private Sub Command208_Click()
strSQL = "INSERT INTO PKR([Claim Number],[WANDFNF],[WANDOUP],[WANDEA]) VALUES ([Forms]![Form Level]....
0
votes
0
answers
15
views
MS Access use form button to append table record
I have a table "Marine_391" that already has fields "Date" and "Shift" filled in - there is a day shift and night shift for every date of 2023. There are several other ...
0
votes
1
answer
45
views
ms Access: Switching between subform recordsource when changing records
I have a main form and a subform on it. I want the recordsource of the subform to change depending on the value of an ID field of the main form. This works when I do it in the Form_Load event of the ...
0
votes
2
answers
119
views
MS Access: Resizing dialog form from within module
I am trying to open a form in dialog mode, and then resize it to a desired size using DoCmd.MoveSize from a module. Ideally I would like this all to run from said module.
Currently the form opens, but ...
0
votes
1
answer
435
views
How to keep MS Access Forms only in the MS Access Window/Canvas?
I have created my MS Access Program but I have multiple monitors and so do the other people who will be using the program.
Just so you know my forms are popup style, have no borders or record ...
0
votes
1
answer
138
views
Enable / Disable Field based on Combo Selection
I am new to Access and need assistance in enabling / disabling a field based on another field's selection.
I have a combo box called RegistrationType and if "Individual" is chosen I would ...
0
votes
1
answer
232
views
Create a history /Log table based on status change
So my client wants is
If a user changes the status of the case then a log needs to be generated in a history table.
Basically, a new history record needs to be made in the history table as soon as the ...
0
votes
0
answers
34
views
Filtering Access subform2 via VBA
I have a database with a main form called frmIndex.
frmIndex has a subform1 control named Sub.
Sub contains a form named frmMaintenance.
frmMaintenance has a subform2 control named Child9.
Child9 ...
0
votes
2
answers
310
views
ms access: pop up form is cut off in form view
I have pop-up form for data entry. The form has a subform on it that is surrounded by blank cells of equal sizes similar to padding. (Why not use padding instead? Because I want to add functionality ...
0
votes
0
answers
191
views
Data entry using a combobox displaying values from a related table
I'm new to ms access and have started a little project to learn how it works. It's a small database that stores safety datasheets and other documents for a number of chemical substances.
An overview ...
0
votes
1
answer
79
views
How can I make a form instance open a specific record on creation?
I'm trying to optimize the performance of my access frontend. One of the problems I'm stumbling on is how to set a multi-window form to open immediately to a specific record, because at the moment it ...
3
votes
2
answers
351
views
How can I cancel a button's action on an Access form if the button is double clicked?
I have a MS Access database that has a switchboard on it that opens different forms within the database. For some reason, some of the users like to double click the buttons that open the different ...
0
votes
0
answers
93
views
How to take values from an open Access continuous sub form, and "paste" them into another form?
Okay. Let me try to explain what is happening here.
User will select record in form 1 and click button.
That will open form 2 to a detail form of that record.
User will then select one or multiple ...
0
votes
0
answers
17
views
Distribute Schedule on Date
I am having a DB for schedules, what i require is to distrubute the projects (Rows) into weekly plan, while in 1 days working hours is 8 and the the week start from Sunday-Friday.
for example if i ...
0
votes
1
answer
45
views
Append Strings and values together to target a form control in VBA
I'm so close to getting this code working, I just need a little push please. I would like to
take the name of a combo box and then add a string to the end, But then get the value of a textbox with ...
1
vote
1
answer
279
views
Call a function with 2 Variables
I'm trying to create a dynamic function that's based off on what dropdown you interact with on a form. I need to pass the name of the dropdown to the function along with the form name when I call it.
...
-2
votes
1
answer
401
views
Save new record to different table with button macro
I have an Access database and one of my tables is connected a form. I want to delete a record from my table and add it to another table with just one button. Deleting it is simple but I can't find a ...
0
votes
1
answer
135
views
Unable to make Ms Access form blank to enter new records
I have a problem. When I open the Ms Access form to enter new records, it is showing old records. I need it to show a blank form, I have tried me.Refresh, me.Requery and call DoCmd.GoToRecord(,, ...
0
votes
2
answers
548
views
Create multiple records from a single record, with one field based on a second table
I'm completely new to creating MS Access databases, so please bear with me while I ask my (probably silly) question.
I have a table for commodities that also groups them into CropGroup and Class, and ...
0
votes
1
answer
96
views
Blank forms for certain users
I created an MS Access Database with around 1000 entries. This database has forms that can change or add new entries, some forms only allow users to view data.
I released this database, however a ...
0
votes
1
answer
131
views
MS Access: Count selected items in multi-valued field on a form
I have a Microsoft Access form with a multi-valued field. I'd like to display the number of items a user has selected to the right of that field. The field is called [Description]. The control ...
0
votes
2
answers
1k
views
MS Access: Add attachment to record from Form field using VBA
I have a bounded form with property 'Data Entry = Yes' which has a multiple textboxes, and one field of type Attachment.
I have a "Save" button that prompts confirmation to save the record.
...
0
votes
0
answers
160
views
How to select field based from combobox in MS Access
I want a user to be able to choose the field they select from a table through the use of a combo box in an MS Access form. My combo box contains a list of all the field names in the table, and when ...
0
votes
0
answers
167
views
How to disable one field by filling a value in another field in a MS access for
I have created a pharmacy database table. In addition to other fields, I have three fields: 'TypeTxn' (Text field) with Receipt, Issue and Loan Issue as three options in a drop down menu, Qty_R and ...
0
votes
1
answer
87
views
MS Access Forms Date/Time Entry Trouble
So I have a couple tables that I want to filter on their Date/Time fields. Here's a snapshot of the form controls that I'm experimenting with.
This will report will probably end up run on a monthly ...
0
votes
1
answer
92
views
(Microsoft Access) How to Input multiple new records with 2 out of 5 fields from being reset
I am trying to create an input form to input new entry into my table.
Basically, I have a simple table with 5 field. DATE, PERSON, Value x, Value y, Value z.
Every time I finished input a new record, ...
0
votes
0
answers
79
views
Why would MS Access Split form show different values in Form and Datasheet views?
I have a split form, one of the fields is price. In Form view part of that form, I get 4,000.00 €, but in Datasheet part I get 4,00 €. The correct value is 4,00 €. I didn't do any formatting of that ...
0
votes
0
answers
132
views
Which form event to use to update a form once form has loaded
A text box on my MS Access form needs to display a value once someone enters information onto the other fields in the form. The text box has a control source from a table so once someone enters ...
0
votes
0
answers
332
views
How to update a form field in MS Access once condition has been met
I need to update the Completion Metric field once a SubjectID is specified. Here is a sample of the data :
There is a form that is connected to this table and I need the Completion Metric field in ...
0
votes
1
answer
648
views
MS Access - Passing Data from a Subform to another Form
I have a main form (Form1) which is used to search records and the subform to that form contains all records searched. Editing or adding data is not available in Form1.
I want to be able to click on a ...
0
votes
1
answer
611
views
I have encountered #Name? error in access form
In Access Database I have main Form named "frmMain" and child form "frmPaymentsToAllAccountsTotal". The Child form is continuous Form I create a textbox on Main form and named &...
0
votes
2
answers
542
views
MS Access form conditional formatting of textbox based on date not working as expected
I have an Access DB I've been working on that tracks the preconstruction work for each project we are awarded. I've included a form that is a quick glance at the status of some of the initial tasks ...
0
votes
0
answers
30
views
Create mulitiple nondefault Instances with New operator for Microsoft Access Form [duplicate]
I've a Microsoft Access form named frmProducts. To show simultaneously 2 products, I need 2 instances of this form. I've also frmMembers, frmOrders, ....
What's the general way to create a new ...
1
vote
1
answer
177
views
How do I hide/unhide a subform based on the input from two comboboxes?
I have a mainform, called TrainingsSU
In it I am calling subform qry_TrainingSU (built from the query of the same name)
I have it set up so that the records auto populate the subform based on the two ...
0
votes
0
answers
73
views
How to cause a subform to update in Access after filling in a combobox on the main form
I have a Query that I am using to fill in data on a subform. The query references in its WHERE statement two hidden textboxes on the main form:
SELECT *
FROM qun_TrainingSU
WHERE ([qun_TrainingSU].[...
2
votes
1
answer
263
views
Ensure Unique Records in Form (MS Access)
Using a Form in MS Access, I need to ensure only unique records are entered into the table.
It's unfortunately in a situation where I can't enforce unique records via the table's primary keys.
I have ...
0
votes
0
answers
22
views
Access Form don't create new entry because a one-to-one relation is not complete
In my database I have a tblCrewInformatio related one-to-one to a tblCouserExpireDate (Auto filled from another source and no edition available).
Not all Crew have Course information (because they are ...
0
votes
1
answer
214
views
How to create a new tab in a Microsoft Access form
I am learning about Microsoft Access and need to create a user menu to access other forms. I know how to make buttons/controls to open the needed form, but I cannot get it to open in a new tab
How do ...
0
votes
1
answer
675
views
Make access subform only populate with button click [closed]
I am annoyed because I have done this previously but can't remember. I have an Access database with linked tables to SQL server database and a form which has a sub-form that is populated by a query. ...
1
vote
1
answer
108
views
Using unbound control value in an SQL statement
I would just like to use an MS Access unbound control as criteria in my VBA SQL command.
The unbound control is named AssignInvoice
Here is what I have:
Private Sub Command64_Click()
Dim InvNum As ...
0
votes
0
answers
316
views
How to show query results in Access sub-form from button
I have not done Microsoft Access forms for 15 years and now I have to amend a system using an Access front end (Microsoft Access 2016). I am managing to resolve a lot of items quickly but one that I ...
0
votes
1
answer
331
views
Hide/unhide combobox based on a text box
I have a form in access that works in this way:
User select an ID of a product
VBA code searches in the database and fill some textboxes in the form.
For example:
User select ID 1
Textbox 1 is filled ...
0
votes
1
answer
101
views
Allowing data additions but not deletions in a MS Access Form's Textbox
I am not sure if this is possible, but I would like to be able to restrict anyone from changing/deleting the current text in a textbox, but allow them to add to it? This way there is no way to ...
0
votes
0
answers
47
views
MS Access - Recordset - Looping through table and sending emails - getting "Run Time Error 440: Array Index Out of Bounds
I have a form that has a list of people that I want my code to loop through and send individual emails. I've done this before, but somehow I am overlooking something. The main variables I am using ...
0
votes
0
answers
139
views
Access date picker value not recognized in SQL query
I am trying to use two date pickers combined with a button in an Access form to filter the query.
The two date pickers simply define the range of the dates and the button is to execute the query that'...
0
votes
1
answer
107
views
Take list box selection, add value to other list box without allowing duplicates
I have two list boxes on a form I am making. The first list box is linked to a table with various company names. The goal I am after is after double clicking a companies name, the value is inserted in ...
0
votes
1
answer
102
views
Requery/Empty Subform Linked to Unbound text box
How do I requery a subform linked to an unbound control on the main form? This unbound control contains the PK for the record they lookup. Since I'm not interested in binding the main form to a table ...