Query based on field prompts for parameter requirement - vba

I'm creating a form where user enters client data on various fields (tbl_Clients). This table is connected with others like (tbl_ClientContacts).
What I'm trying to do is to list personal contact information (name, phone, email, position) in a list box from table (tbl_ClientContacts) inside a form responsible for entering client data and later on using those contacts on reports as well BUT
Everytime when I open this form I'm being prompted with param required box.
on a query responsible for those contact data im using following code (end of select clause):
WHERE (((Tbl_Client.ClientName)=[Forms]![Frm_Client]![ClientName]))
I'm trying to recover this data based on field in form. It can't be done with requery connected to a button as well.
Can someone help me with this problem?

Related

How do I create a form that links to another form where I can then enter multiple entries associated with the first record?

I have created a data entry form on MS Access that allows me to input details for a Venue (i,e, venue name, address, contact details etc). I am trying to create another form that will allow me to add opening times for that specific record. Is it possible to have a button within the Venue data entry form that will save that specific record once the data has been input, and then take me to another form that will allow me to specify the opening and closing times for each day of the week?
You can create a macro to perform three actions.
Then attach the macro to a command button on a form
The actions are below
Go to record- Next
Go to record- previous
Open form( enter name of form)-this will have parameter
Find attached an image of a sample macro
Though i will suggest you use a One to many table instead
The table with opening and closing times will be a foreign table
The venue table will be the primary table
Then create a parent and subform that links the two tables.

MS Access - Continuous form custom text entry

Good Morning All,
I am wrestling with a problem with continuous forms.
I have a continuous form based on a query that pulls transaction information from a table.
I want to have text box on each row where the user can override the fee value, at which point when the submit button is clicked the overridden information is written into a second table in the database.
When I add an unbound text box onto the continuous form I end up with all entries reflecting the amount I have just entered.
If I add a dummy column onto the SQL query, I am unable to edit the information.
Is there a way to do this? Below is an example of the form input I am shooting for:
Snip:
I don't think this can be done in Access.
I think the closest you can get, is to display the value from the secondary table in your continuous form; and then, after some user input (focus into the textbox, or double-click the text box, or button click), prompt the user to enter a value using either the VBA InputBox function, or leveraging the built-in Zoom box. Check that the user-entered value is a valid number, update your external table, and refresh the query results.
You might also create a custom form to validate the input.

I have created a form in Access that corresponds to a table with zero attributes

I have created a form in MS Access. The corresponding tables for these forms have zero attributes. I simply created a blank form and manually inserted text boxes, labels, check boxes, etc. Now I would like to capture specific information that is entered into the form. How would I go about this in MS Access? Do I need to write some VB code to say "record whatever value the user puts in the field for serial number" for example? There is no preexisting data in any tables.
A user will manually fill out the form in Access, I would like to capture the data that the user inputs.
Bind the table to the form and then bind the controls to the fields of the table.
Or, the easy route: Mark the table in the navigation pane, then click in the band: Create and then Form, and it will do the dirty work.

MS Access- Generate fields in a form based on combobox choice

I'm using a linked view in Access from the SQL server.
That view contains an employee_name column and many other columns (like equipment , parking, room, date etc). There is a row for each new entry (for example an employee got a new phone at a date and then at another date he got another phone), therefore there are multiple rows for the same employee name.
What I need to achieve is having all the entries in a form from an employee.
What I have tried so far is creating a form based on that view and adding a combobox with the option "find a record on my form based on the value I selected in my combo box active". The problem was that I was seeing users multiple times due to the new enteries mentioned above. I fixed this by doing a select distinct on the employee name in the row source tab.
But now I'm getting only the first entry for an user, what I want is to get all the enteries (maybe in auto-generated textboxes, or anything which will be easy to export to excel, since that would be my next step - to have a button which can generate a report based on the user with all the corresponding entries) like I would have written SQL code like below:
select * from schemaName.viewName
where employee_name = '/*here use the selected name in the combobox'
Thank you for your help, I am a complete beginner to forms in Access and all of these great things one can achieve.

Creating a search query in Microsoft Access to query unbound fields and subform

I cannot seem to figure this out. I have made it very far with this database but now i am at a loss. I am going to post screenshots and details below and I hope it will be enough info.
This is my main form (dashboard). It shows the status of calls my employee has received. I need to implement a search. I would like it to search by customer or part.
My Goal is to have someone enter a string in the search field and retrieve matches to display on my details from (that contains a subfrom)
This is the detail screen. It shows the customer and the part(s) on the subform. All the customer info is unbound due to the way it is handled. I have a customer master table my employee can search from and add to the call. If the customer is not in my master table he can enter one manually. The unbound boxes are tied by a CustomerID field.
These are my Relationships for the database
This is the function that matches the CustomerID to fill the unbound boxes
This is my table for the detail form
And finally my table for the subform