Access Database Help please

josh.clare

Board Regular
Joined
Feb 25, 2010
Messages
144
Hi all,

i have created a very basic access database that contains all the information i need for our jobs at work. a majority of the data is in 1 table.

All i need to do now is create some userfriendly forms to add/edit data in the tables.

i have uploaded my basic database here:
http://81.134.132.58/josh/Database7a1.zip

Can someone please help me in creating these forms, as you can see i have made several attempts but am struggling. i want to create forms for sections of the table if possible,

Thanks,
Josh
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Use the Forms Wizard to help create the forms based on the tables, then add some command buttons for finding, filtering, add new etc the command button wizard can be used here.
 
Upvote 0
Hey Trevor, i can use the form wizards to get the very basic forms, but i would like to add some kind of search/filter option onto the forms so that if they want to edit a specific row of data, they can search/filter to find the data they wish to edit, could you please help me insert this,

thanks, josh
 
Upvote 0
What you need to add is a combo box which will list the companies or what ever then click and find based on the value you selected.

Open the form in design view then add the combo box and the wizard will start then make sure you have it selected to find based on a record in the form, that should get you going. Your users can either select the drop down or start to type in the company name or what ever you decide to use.
 
Upvote 0
that works fine but the company is not the primary key and there are duplicate values so is there a more advanced way of filtering/searching i can add to my form?

thanks
josh
 
Upvote 0
You can group the companies so you only see 1 then the form can filter to all of the records and you just navigate accordingly.

Open the form in design view, select the combo and open the properties, then go down to the Row source and click the elipsees button on the right then in the query window make sure the companies field is shown and then look to use the Totals icon and it will group them together, then if needed sort them and make sure there are no empty records so add <>"" in the criteria, save and close then look at what happens on the form when you change the view.
 
Upvote 0
Josh,

The form works fine in the properties you have the combo also selecting the reference, in this case perhaps you would show both columns so the user would then have an idea which one they want.

The combo finds the record, it doesn't apply a filter.
 
Upvote 0
The combo box has an after update event which is looking at the reference field if you change the code to the company field it will work.

Private Sub Combo88_AfterUpdate()
On Error GoTo Combo88_AfterUpdate_Err
DoCmd.SearchForRecord , "", acFirst, "[company] = " & "'" & Screen.ActiveControl & "'"
DoCmd.RunCommand acCmdApplyFilterSort
Combo88_AfterUpdate_Exit:
Exit Sub
Combo88_AfterUpdate_Err:
MsgBox Error$
Resume Combo88_AfterUpdate_Exit
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,424
Members
452,914
Latest member
echoix

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top