Add table row to different database using button - database

How do I get the add button to work?
I the question with a image here.
https://wordpress.stackexchange.com/q/380190/196184
When I click it I want to get the user from 'User List' to the admin table instead of typing the name and email in myself (that works). But I can't get the add button to work.

Related

Cakephp - Popup to confirm existing entry

From my template, when I click on submit, I have to check if one of the fields of my form exist in another table yet and if it's, show popup with OK/Cancel
How can I do that?

MS Access 2016 Open Record on Click and Then Be Able To Go To Previous Or Next Record

Long time reader first time poster here. I have basic knowledge of access coding but nothing fancy. Anyways here it goes. I have coded on click from a Tubular List in access of our products table to be able to open up a certain specific file. When I click on a product name or SKU it does just that and opens that specific record for me called (Product Profile Form). AWESOME! I have on that Product Profile Form Next and Previous Buttons to go to the next or previous records. But if I go through the Product List and click on the Product Title. It Opens and If I then click Next or Previous record Button it first shows a blank Product Profile but on the next click it says "You cant go to that specific record" in a pop up. The Code Macro I have on the Tubular Product List Form is
/ Form Name: Parent Product Profile Form /
View: Form /
Filter Name: /
Where Condition=: ="[Product Parent SKU]='" & [Product Parent SKU] & "'" /
Data Mode: Edit /
Window Mode: Normal /
Parent Product SKU is The Primary Key Field Name in my ParentProductTable
I have tried and tried to figure this out for hours online and here.
Thank you all for any help.
Ok I solved it myself and if anyone else has this same issue the resolution is this. Make a command button on your form. You will have to run a few different macros for the on click event for the command Button. For the Next Record Button After clicking where you want your command button to go on your form the Command button wizard will pop up. Choose Record Navigation in the categories box and then choose Go To Next Record in the Actions Box. Finish the Command Button Wizard. Then Right click the button and choose Build an event. This will open the Macro Tools. Click add new action and choose the Macro RemoveFilterSort.After that if you hover over the macro RemoveFilterSort you will see green arrows to place your macros in the order you want. Click the green arrows up until it is first at the top. Click Save and then exit. Now you should be able to go to the next record. Do the same for the previous record except in the command wizard pop up choose Record Navigation in the Categories area and then choose Go To Previous Record instead of like before we chose Go To Next Record. I am using Access 2016. What you basically did is told the button to remove the filters before moving on to the next or previous record. If you dont want to make command buttons and use the access supplied navigation buttons at the bottom. You can make a command button with the macro RemoveFilterSort only and you will have to click this button to remove the filter then you can click the Access supplied navigation button. I hope this helps someone.

Opening Button to open form based on combo box selection

I currently have a MS Access database of members.
I have a form that has a combo box which is populated with just the first and last names of members. (using a test database for now)
What im struggling with is how do i create a button that opens another form i have created but using the selection in the dropdown box to populate the fields in the newly opened form.
When a user from the dropdown box is selected an open is clicked i want it to open the profile form populated with their details.
pictures and access files can be found on my ftp server:
ftp://ftp.legends-gym.co.uk
User: ftpuser#legends-gym.co.uk
Pass: ftpuser
Regards
I can't access ftp site from work so can't see what you've got thus far however, the key bits you want to look at here are:
Add a button to the form and the On Click Event to open your profile form. Something along the lines of docmd.openform "frmProfile", acNormal
You need something to pass the member you've selected in the combo box to the profile form. One way might be to use OpenArgs so have a look at that
You then could use the passed variable in OpenArgs to select the data you want to fill out your profile form.
EDIT...
OK, I've had a look at the file now. Here is what you need to do to fix your problems (and a couple of extra bits which aren't causing an issue but will improve the look and feel).
On the Format of the Home form and the Member Search form, set Navigation Buttons and Record Selector to false. - This removes the unnecessary elements for a "single" form, you're not looking at records.
On the member search form, remove the binding to the members table. - You don't need to bind this form, as the recordsource of the combo is pulling the data required separately. if you look at your form before you change it, you'll notice you've got 1 of 10 records...
Also, remove the filter criteria and set filter on load to No - You were filtering the wrong form.
On the combo box, remove the after update event. - I'm not sure what that was trying to do but its completely unnecessary.
On the command button, add an onclick event which has the following code DoCmd.OpenForm "Profile", acNormal, , "ID = " & Me.Combo361 & ""
Save everything and enjoy. :)
You weren't far wrong with the filter, but it's actually a WHERE clause when opening another form - sorry, my bad misdirection. What you were doing was filtering the original form - ie the member search form. Also, you don't need to put ' quotes around the ID, it's a number not a string.
If you have problems I can probably host this fixed version somewhere for you to download.

create simple form with AngularJS+Bootstrap+grid

I am working on AngularJS and Bootstrap. I am new to both. I wanted to create one form which include firstname input textbox,lastname input textbox , city dropdown and add button called addUser.
When I click the add user button it should be saved in our database and then displayed in below grid with edit and delete button. When I click the edit button, all record comes under above corresponding textbox. I have gone through below link but i didn't get my scenario implementation, in that they used xeditable.
http://vitalets.github.io/angular-xeditable/
Here is an form example made with angular link
Basicly you need to create a controller. In your controller create a user object, bind this object properties to form contollers with ng-model. When user clicks a button send user object to a method in your controller, add ng-click to your buttons. In your functions, you can do create, edit, delete actions.
Please refer the link and check the highlighted keywords, this must cover all of your needs.

How to update values to the Dataset

I'm working on windows form project, added service based library and created a table in it.
Just by dragging the table from the DataSources window i get the textboxes which show the values in the table.
When i start debugging, the form window appears and i enter values and click the save button on the top.
Sometimes it thrown exception.(Db is read-only). After changing permission, now when i click save button, nothing happens and in the table i find no new values.
Where is the problem?

Resources