Тёмный

Access: How to Create Search Form Using Combo box Part 1 

T Golden Eye
Подписаться 21 тыс.
Просмотров 649 тыс.
50% 1

Search/ Filter data using Combo Box

Хобби

Опубликовано:

 

18 окт 2014

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 263   
@crissymcmanus
@crissymcmanus 9 лет назад
Austin, just wanted to say Thank you! Your videos are really helpful in helping me refresh my access. Love that you get to the point, and you don't add a lot of useless information. Thanks
@gslvqz8812
@gslvqz8812 9 лет назад
Hello Tewan, I even had to create a channel in order to comment on your video. I truly want to thank you for all the time you have put on this tutorials. I am workiing on a Database Project for work and I am implementing many of the things you have shown. Truly thankful for doing this and sharing them with the world. Thanks a lot!
@williamhoward7002
@williamhoward7002 8 лет назад
Great job on this Austin, I had a similar need where I wanted to use a record from one table to limit the list box and your demo did the trick! Thanks!!
@dankbeard27
@dankbeard27 6 лет назад
Great video thanks a lot. Had a parameter error at first but then noticed some of your comments below and was able to resolve the issue. Thanks a lot for posting this, very helpful.
@sudeshnabhattacharya1285
@sudeshnabhattacharya1285 4 года назад
Excellent . One of the Top class tutorial videos on RU-vid. 👍
@SilverGin13
@SilverGin13 8 лет назад
thanks alot , i searched really long for something like this .
@MrPaulbarnard
@MrPaulbarnard 4 года назад
I have some slightly different experiences with MS Access 2016. The index based combo box filter works without issue. However, I have two scenarios which are giving blank drop downs but the query works in the design view. Scernario 1: Target for the filter is storing the string as the bound column rather than the Integer when the value is saved (primarly to avoid just index numbers showing in reports etc). So I use the crosstab and select to group the stored text to give a single distinct list of values for my combo box, and in the test when I ran the query shows the distinct list of values but when I save and move back to the form view I get the correct number of rows in the combo box but they are all blank (Null). The same happens with a grouping of a free text field - the query is working when you click Run! but nothing shows in the dropdown for the combo box..... ANY IDEAS?
@funniq
@funniq 9 лет назад
Thank you so much ... great tutorial ... i subscribed :)
@MsrRycerski
@MsrRycerski 7 лет назад
austin72406 I am fresh in Access but must tell that Your Tutorials are very helpful for me. You make great Job Keep it up Austin :D
@michis6379
@michis6379 9 лет назад
Hi, where do I see the name of my subform in the splitform? I've created the search box using combo box. But i cant seem to make the datasheet in the subform filter to the selected value.
@ontracklifetools5189
@ontracklifetools5189 9 лет назад
Hi, Great video and very helpful. I've ran into a problem though and I've looked at it from every angle and can't seem to figure it out. I have 4 levels of cascading combo boxes. When I select a value for the first box, the second box filters the available options perfectly and I'm able to select one just fine. When I get to the next, third combo box however, I immediately get the "This expression is typed incorrectly or it is too complex..." error and there are no values available to select from. Same story for the 4th one. The queries for each of the 4 combo boxes reference are virtually exactly equivalent to each other as well as the criteria code. I just can't figure out why the concept works fine for the second box but won't work for the third or fourth when they, again, are virtually exactly the same. I have the right VBA to requery the next box as each box is filled, each row source is pointing to the right place, the boxes, queries, and tables are all named and referenced correctly, everything seems to be right, but it won't still work. I'm completely stuck. Anyone?
@zafarimran3570
@zafarimran3570 Год назад
I used your procedure it is working perfectly
@francoisjoubert6867
@francoisjoubert6867 8 лет назад
Hi Austin - thanks very much!
@elmehr2000
@elmehr2000 7 лет назад
This is exactly what I'm looking for. I wish I could save the video.
@myrfapathathabufathima1230
@myrfapathathabufathima1230 6 лет назад
Really worked in my school table searching district wise
@Touhid54
@Touhid54 8 лет назад
Thank you sir your teaching is very good
@rmp4889
@rmp4889 6 месяцев назад
Excellent 👍🏻
@MiaMia-xr1bz
@MiaMia-xr1bz 8 лет назад
Hi Austin, I'm a teacher and designed a dbase containing students grades for certain projects during each semester. I would like to design an unbound search box that will have drop down list field from another table, once I choose from the list, it will generate a report which I've already designed/sorted/calculated grade average for each student. example: I will click on the report and an unbound search box pops up. I will click on the drop down list and choose from the list coursenumber, semester, and project (231-spring2016-project1), then hit command box run report and it will generate a report from an existing report design format and let me preview before printing.
@zafarimran3570
@zafarimran3570 Год назад
Thanks a lot it is really helpful
@mrgogate
@mrgogate 4 года назад
super. thank you!
@karnabudhathoki6289
@karnabudhathoki6289 8 лет назад
Hi Austin, Could you please explain not only what you do but why you do while doing something so we can have a better understanding. Also bigger font while writing code would be helpful...... Thanks for your knowledge sharing.....
@coulibalyibrahim7649
@coulibalyibrahim7649 8 лет назад
hello austin, don't know if you are using the same Acess 2010 like me but i have an issue with the use of the subform/subreport and combo box design tools. when i click and drag them to the sheet, instead of showing me the subform or combo box wizard table i have directly the property sheet table which is very frustrating...... please help me i've been trying to debug it since .......
@kirkricks539
@kirkricks539 6 лет назад
Hey Austin! This has been the most helpful tutorial on this subject that I have seen so far. My only problem is that it is only displaying the first matching record in my table (I have several that should match). Any suggestions?
@Tec20248
@Tec20248 2 года назад
Very Helpful videos, pls start for beginners in MS 10
@mohdfaizal275
@mohdfaizal275 4 года назад
Thank you... Very nice tutorial
@Mo-tx4vp
@Mo-tx4vp 7 лет назад
Hello Austin, thanks for great tutorial, Could you please considering to create an example with Closing balance and Opening balance ?
@TavgaHawrame
@TavgaHawrame 8 лет назад
helpful lesson
@michellemoncevais2878
@michellemoncevais2878 8 лет назад
What if the form you are using as a sub-form gathers information from multiple tables? While the form does take me to the correct record, not all of the fields are filled in. Specifically the ones that are obtained from another table.
@britesynth
@britesynth 9 лет назад
can you use both combo boxes to seearch for a specific record? like customer type = individual and gender = male, the table should now display all individual male customers, is this possible? thanks!
@Sokol002
@Sokol002 9 лет назад
Hi, I am having difficulties when running these two forms: - frmFirstPage> when I change from Design to Form View it displays error :"Create Search Form cannot find the referenced form 'Navigation Form'" and points to line: Me.user = Forms![Navigation Form]!TxtLogin - frmAddUser when click on Close displays error : "The Command or action 'BrowseTo' isn't available now", line is: DoCmd.BrowseTo acBrowseToForm, "frmFirstpage", "Navigation Form.NavigationsubForm", , , acFormEdit Also, when I run .accdb it show pop-up "Your comp. LoginID has not setup...". What could be a problem? Thanks!
@michis6379
@michis6379 9 лет назад
Hi, i cant get it to work on my form. When I click a choice in the combo box, the form shows the correct record but the subform (datasheet view) does not filter. It shows all data in the datasheet and highlights the first record that matches the combo box.
@dhpa4035
@dhpa4035 6 лет назад
I truly wished this worked, but I'm getting the same error that numerous other posters are reporting. Is there a clear answer to the "Compile Error: Method or data member not found" error?? I know others in the comments have had the same issue but no one has posted a clear answer. I've added the extra quotes as I'm dealing with text and not numbers and the error continues. I've read that this error is tied into the use of 'Me' but I can't confirm that is what is causing the error in this case. If possible I would really appreciate an answer or some direction as to why this error is occurring. What should I be looking for to fix this?
@Vishal-mf1rd
@Vishal-mf1rd 7 лет назад
Thanks a lot.
@pfredricks
@pfredricks 8 лет назад
I noticed at about 9:49, you have dropdown selector (listboxes?) for Gender and Customer_Type_ID on the form. How did that happen? Mine doesn't look like that and the coding isn't working. I'm really new at Access. Thanks!
@lelawadee
@lelawadee 9 лет назад
Thank you so much. This tutorial help me solve my current problem.
@zizo2244
@zizo2244 9 лет назад
lelawadee After typing the VBA code and trying to use the combobox search, i recieved an error message " compiled error : sub or function not defined"
@zizo2244
@zizo2244 9 лет назад
hossam mohamed what can i do to solve this problem ?
@shmer4966
@shmer4966 8 лет назад
+hossam mohamed Please mention the VBA code here to look for errors
@Ahmed_Ibrahim39
@Ahmed_Ibrahim39 8 лет назад
Hi Austin , how can i send report based on the value of that combo box by email i khow how can i send report by email with macro , but it send all data, idon't want that ,i need the results of combo box for example or any other way to filter data by form. thx
@mohammedshafi892
@mohammedshafi892 4 года назад
Hi, I have one question, I made one very simple database it has five fields. One of them is payment combo box. I filled it according money in money out. When I generate report it sums whole in and out sum together. How can i separate paid out and paid in subtract from total sum please? Thanks
@loco83loco1
@loco83loco1 4 года назад
Can hou also do this with a query? Instead of a subform? The VBA doesn’t work correctly. In the last 2 line of the VBA you use a tbl..... but can you also use a query?
@angelschannel554
@angelschannel554 5 лет назад
Can we add record to another database table (Using connection/execute)
@siamaga
@siamaga 6 лет назад
Hello Austin, this is exactly what I have been searching days for. Will this still work if I have alphanumeric variables in my combo-box? I have "FY 16-17", "FY 17-18" that I am trying to let user choose from.
@mraprilonempeno
@mraprilonempeno 6 лет назад
hello! when I typed "Me. ..." with all my info but I am not getting the auto-filled or auto-added. The last two lines are giving me errors. Help please.
@shazim579
@shazim579 6 лет назад
What should i do if i want all three filter applied in final data? Like if i select customer type as business and at the same time i select gender as male then the final data should reflect data after applying both the filters. Please help
@zafarimran3570
@zafarimran3570 Год назад
As you very well defined how to select subform value by using combobox. I want to use one combobox to update / replaced only selected values by combobox. Thanks in advance
@zakiisa6846
@zakiisa6846 2 года назад
Hi Austin, my query did not display result as intended for certain ids, but worked for other ids. Can you please help? Can I show you the error via virtual meeting?
@carmelalacdao2170
@carmelalacdao2170 6 лет назад
Hi austin- i've followed the step on the video as far as i know. The difference is that i created an append query and link my table to the link table. Now i keep getting error as my subform is not referenced.
@zakwanshah7442
@zakwanshah7442 8 лет назад
I dont understand, where did you get the myCustomers from? Is that just a name for the combo box? can it be anything?
@Zaranist
@Zaranist 7 лет назад
Zakwan Shah yes it can be just be sure the use that same name where that field is used
@abdulhamidalhaddadi2255
@abdulhamidalhaddadi2255 2 года назад
Thank You
@edwardbarcelo3120
@edwardbarcelo3120 4 года назад
thanks for sharing the video sir, it was very helpful. Can you make a video combining this video with your other video with date range search and also with print report button? thanks
@MrNavy26
@MrNavy26 6 лет назад
it didn't work. the form doesn't take affect may I know what the inside of setproperty on module ?
@nadejda22851
@nadejda22851 7 лет назад
Hi, It doesn't work for multiply items subform. I have tried to put in subform data from two tables. After applying the combobox cells from second tables have value #Name? Could you please advise a code for multiply items subform?
@joLuTuber
@joLuTuber 6 лет назад
Hi Austin, i have have a problem in one of my code, how i can contact you, Thank you!
@tenezeegehndyu813
@tenezeegehndyu813 8 лет назад
Hello Austin, what is the myCustomer that you entered in the code?
@chendapped
@chendapped 8 лет назад
that is part of Visual Basic coding. Its a created array to store the data. Its not actually a location in the database. he could have named it any thing like Dim my1234 AS String and it would have still work as long as he called it back using the same name.
@alainmanangan1737
@alainmanangan1737 6 лет назад
Hi Austin, how can i show all the records after filtering the individual records on the combo box? Thanks!
@austin72406
@austin72406 6 лет назад
If you can FilterOn then you can disable Filter by using this: Me.FilterOn = False If you use SQL then you use this: strSQL = "Select * from tableName" Me.RecordSource = strSQL Me.Requery
@Ahmed_Ibrahim39
@Ahmed_Ibrahim39 9 лет назад
thx alot
@hossammohamed7096
@hossammohamed7096 3 года назад
I am using access 2016 . After I choose any value from the combobox it retrieves nothing ! please i need help
@CambodianTutorials
@CambodianTutorials 3 года назад
thanks
@abeayal3578
@abeayal3578 5 лет назад
Dear Sir, appreciate your lecture. can I use Date in "00-xxxx-00" format as a criteria for a where conditions in access form Macro building? how? can you give me a detail coding which I should put in the where condition? thanks a lot
@selvarajandiappa3143
@selvarajandiappa3143 2 года назад
Hi good day .. Need your help.. In Microsoft access if we want the form to display total in numbers.. For example the total of new job, total of pending jobs, total jobs waiting for spare parts and so on.. Is it possible
@sepidehazadvari6002
@sepidehazadvari6002 7 лет назад
Hi. I copied your code exactly. but when I choose a value from combo box, I keep getting error "3251" "operation is not supported for this type of object". could you help me please?
@MrNavy26
@MrNavy26 6 лет назад
how... if. Im using that subform.. not a table form.. I mean.. the subform is come from query. I trying that ur steps, but it doesnt working. Could you help me. bcuz. I have to use that query..cause there's formula on it.
@adikbatman
@adikbatman 7 лет назад
Hi Austin, I follow just like in the video. It work but mine only filter one in the time. If I choose 1st cbox then when I choose the 2nd cbox, it change only follow the 2nd cbox. It only filter the whole table, not multifilter. What it's happen? I want it filter the 1st selection cbox. Am I missing something?
@austin72406
@austin72406 7 лет назад
If you want to filter 2 combo boxes together then you need to use AND operator for your criteria. for example, "Select * from Customertable Where ([Gender] = '" & me.CboGender & "' AND [State] = '" & me.CboState & "')"
@adikbatman
@adikbatman 7 лет назад
Thanks it's work but not like yours. Like yours it filter straight away after each of cbox.
@mrcreidiv
@mrcreidiv 6 лет назад
Hello, do you have a video tutorial on how you created your report? In your second video, you used the same report for all three categories (Customer, gender, and state). How did you do that and how were you able to get a total ...
@zh1412
@zh1412 9 лет назад
Hi, thanks for all your tutorials , they have been really helpful. I have a question, is there a way to export these results to excel? Or is this for display only? Thanks.
@austin72406
@austin72406 9 лет назад
watch video Part 2, open the report then click on Export to Excel icon on the Preview tool bar.
@michellemoncevais2878
@michellemoncevais2878 8 лет назад
How do you list multiple record sources?
@myrfapathathabufathima1230
@myrfapathathabufathima1230 6 лет назад
Thanking you
@kalpeshsangita
@kalpeshsangita 2 года назад
After following your instructions I am getting a syntax error. When I debug It shows the error on the record source line. Please help. Dim myReagent As String myReagent = "Select * from Receipt&Verify where ([Product_ID] = " & Me.CboReagent & ")" Me.ReceiptVerifySubform.Form.RecordSource = myReagent Me.ReceiptVerifySubform.Form.Requery
@leonjiang347
@leonjiang347 8 лет назад
Hi Austin, how did you learn Access VBA? I mean what book have you read or some other resources? I'm trying to learn access vba, but I don't know how, I've read a few books, but they can't help me.
@austin72406
@austin72406 8 лет назад
learn from others( from sample file, or internet) and test it myself. I have used it more than 15 years.
@dvdgatz
@dvdgatz 9 лет назад
Hi! Great tutorial, quick question though, is there a way to do this with Dates? Such as having a combo box that uses Dates in a Date/Time format. I've tried a few different things to no avail. Thanks!
@austin72406
@austin72406 9 лет назад
it also will work with date field like:task = "Select * From QryEmpPayDetail Where [PayDate] >= #" & Me.textFieldDate1 & "#" & "And [PayDate] >= #" & Me.textFieldDate2 & "#"
@anilbagga4640
@anilbagga4640 4 года назад
I have a problem. I created 2 tables - ItemGrouptbl where there are 2 fields - ItemID (autonumber) and ItemGroup (group names). The main data is in a table ItemMastertbl where the field for search is ItemGroup along with other data. The Subform created linked to ItemMaster is called ItemMasterSubFrm. The Code after event in the cbo box linked to ItemGrouptbl is as below. Private Sub cboItemGroup_AfterUpdate() Dim SGroup As String SGroup = "Select * from ItemMastertbl where ([ItemGroup] = " & Me.cboItemGroup & ")" Me.ItemMasterSubfrm.Form.RecordSource = SGroup Me.ItemMasterSubfrm.Form.Requery End Sub I get error runtime on Me.ItemMasterSubfrm.Form.RecordSource = SGroup which saya "3464 - data type mismatch". It appears to be simple but with no VBA knowledge I cant resolve this Please help!!
@cricuts1
@cricuts1 7 лет назад
Hi Austin Thanx for making this video. I wanna know is there a way i can select no value and get the full table. When i select a value and get filtered results in sub forum but when i delete value from combo box i get an error msg.
@austin72406
@austin72406 7 лет назад
you will need to set value in the table then it will show in the combo box.
@AJJACKAU
@AJJACKAU 8 лет назад
I watched your first example and copied the code exactly and I kept getting an error. I was wracking my brain for a few hours and then decided to watch the second example to see if I had missed anything. It was then I saw you were getting the exact same error as me. This is because I was using a string and although you define the first example as a string it was really a number. How frustrating! In future I will watch the whole video before attempting to replicate it.
@jonasjanaitis436
@jonasjanaitis436 8 лет назад
+AJ Jack exactly exactly the same...
@ristantosky
@ristantosky 5 лет назад
check your kind of control value . whether its string or number . that matter often makes error because of " or ' (quote) usage in script
@vickywong390
@vickywong390 5 лет назад
Me too
@philr3630
@philr3630 4 года назад
ty but don't think this is a cascading combo box. i believe the idea is to limit the item to reach a specific record. box1 generates box 2 choices, box2 generates box 3 choices. then you have a specific record to change. You didn't mention if this was a sub-form underneath.
@ziehaismail8611
@ziehaismail8611 8 лет назад
Hi Austin. I'm following your instruction but it seems not working. Is it because of the table relationship?
@austin72406
@austin72406 8 лет назад
there are many possible reasons. the code and the structure may cause it.
@ziehaismail8611
@ziehaismail8611 8 лет назад
Thank you for responding. Is that any possible coding or method to start using VBA in access? Here is one of my coding.. Private Sub cboState_AfterUpdate() Dim myState As String myState = "Select * from CUSTOMER where ([state] = '" & Me.cboState & "')" Me.CUSTOMER_subform.Form.RecordSource = myState Me.CUSTOMER_subform.Form.Requery End Sub I'm not sure what goes wrong here..
@sukronjazuli
@sukronjazuli 6 лет назад
I also get the problem, With Same way...
@vickyjadav9599
@vickyjadav9599 5 лет назад
When i m doing this, 2 combobox search but the third one in my table occurs parameter error
@franklinhomecillo5275
@franklinhomecillo5275 7 лет назад
Can anyone help me . I have combo box and text box for data entry. Is there any way when i select item listed on combo box and enter anything on textbox would go to the sheet where i want to put. But combo box will only find the item on the sheet of what was being selected . Only the text box will be entered once selected item found
@austin72406
@austin72406 7 лет назад
still not clear on your question. not sure what you mean for Sheet (record or form).
@bbahashwan
@bbahashwan 9 лет назад
we you do this code you wrote ( dim mycustomer) can you show me from where you gave it
@kholoudj.2098
@kholoudj.2098 8 лет назад
It show me the following: Runtime error 2465' Application defined or object defined
@TheRapidhome
@TheRapidhome 8 лет назад
I have curated a small data base, I would like to select forms using a combobox along with a command button to filter. can you show me how to accomplish this ? Just started using access 1 years ago.
@austin72406
@austin72406 8 лет назад
you can watch my video and get information from my website at www.iAccessWorld.com
@mohannadghazal441
@mohannadghazal441 6 лет назад
hi i will do all step from your video but there is a msg for error Run-time error '3131': Syntax error in FROM clause
@jenniferwoods8471
@jenniferwoods8471 7 лет назад
Could you please explain me.tb1_Customer_subform1 ? The subform you created didnt have _ before subform . Also it didnt have 1 after subform Is that something excel automatically provide upon typing me. and the list pops up and you select?
@austin72406
@austin72406 7 лет назад
I have the subform names tbl_Customer subform1. it names subform1 because I already have another subform names tbl_Customer subform. Number 1 is not the case. it shows Customer_subform because the VBA auto added it when you type me.tbl_ and picked Customer subform. the VBA will auto filled for you as Me.tbl_Customer_subform as one word. Me.tbl_Customer subform will not work because it has two words. However you can use bracket [] like Me.[tbl_Customer subform] You will see the similar auto fill-in with under line (_) on click event like: Private Sub Command386_Click() 'your code End Sub
@zizo2244
@zizo2244 9 лет назад
After typing the VBA code and trying to use the combobox search, i recieved an error message " compiled error : sub or function not defined" what can i do to solve this problem ?
@zizo2244
@zizo2244 9 лет назад
hossam mohamed Any help please ....
@maptoursdmcjordan6310
@maptoursdmcjordan6310 6 лет назад
I'm need to do something like this, can you help me if I can contact you please ?
@zacksherman
@zacksherman 8 лет назад
Hi Austin, the table I am using is linked to an excel document. When I try to filter using the combo boxes I always get a Run-time error '3131': Syntax error in FROM clause. Do you know if the linked table could be a cause of the error? And is there any way around that?
@austin72406
@austin72406 8 лет назад
it's hard to tell without seeing the code. can you put your code here?
@rhitchelle023
@rhitchelle023 3 года назад
I had also problem with this it says Run-time error '3131': Syntax error in FROM clause Here the code I use Dim myGatepass As String myGatepass = "Select * from Data Entry Form where ([Gatepass]) = " & Me.cboGPSeries & ")" Me.Data_Entry_Form_subform.Form.RecordSource = myGatepass Me.Data_Entry_Form_subform.Form.Requery End Sub Note: the 3rd line is that gave an error its been Highlighted yellow when I click Debug when Run-time error 3131 appears. Could you help me with this?
@yinks8331
@yinks8331 7 лет назад
hi austin, thanks for your insightful explanation..i am writing a similar code but keep having this error and was hoping you could help....i am using a textbox to collect the search criteria...i tried using the "Like" statement to return my resultset..but i keep getting a mismatch error 13 display message....can you help me here
@austin72406
@austin72406 7 лет назад
mismatch error comes from the difference of integer and string. if you use Like then it should be like this: Like ""*" & strText & "*"""
@dhungchauful
@dhungchauful 9 лет назад
Hi, thank you for the videos, I have learned lot from them. Please help me:My invoice total field is suddenly shown Blank. it was working fine for months, not sure why now its field shows Blank, Same with my Reports, the Total fields are now shown Blank.
@ratnawia4353
@ratnawia4353 7 лет назад
Hello austin, thank you for video, but i dont understad when select data from combo box, then subform is blank please, help me. thank you
@austin72406
@austin72406 7 лет назад
please review video if you missed any step, both code and form setup.
@ratnawia4353
@ratnawia4353 7 лет назад
i use source from query not table. that is problem ?
@alpeshhirani5566
@alpeshhirani5566 5 лет назад
Please make on video full accounting GST System
@flrazvan
@flrazvan Год назад
Is better just to create a query (in query design) as data source and put forms! (with build)... in the criteria on the same line ( in order to be an "and", cumulative) . Is much more easy, and without code.
@pazfejeamarcellenediocales7731
@pazfejeamarcellenediocales7731 3 года назад
where did you get the "mycustomer" variable?? and i'm experiencing error due to mismatch in criteria but i already checked it again and again :(
@austin72406
@austin72406 3 года назад
It's just a name. you can use any name /word like Dim StrSQL, mySQL etc.
@pazfejeamarcellenediocales7731
@pazfejeamarcellenediocales7731 3 года назад
@@austin72406 okay, thank you!
@pazfejeamarcellenediocales7731
@pazfejeamarcellenediocales7731 3 года назад
@@austin72406 Hi again! in ur video did you correct the form to from? or it automatically turn to from? anyway I used FROM and I'm getting syntax error in FROM clause. And in your tbl_customer_Type did you use wizard to list out the customer type?
@sharinabaddiri8181
@sharinabaddiri8181 7 лет назад
Sir, I followed all the Instructions and still not working, it always pop up like i didnt put anything
@renflores7353
@renflores7353 8 лет назад
Hi Austin, I create a search form, and another form for the result of search, how to get the data from table to reflect in form(text box)?, thank you!
@austin72406
@austin72406 8 лет назад
you compare the data from text box that you typed in to the field name in the table. If it matches then show the record for that name matching the text box. And then put the result or data source from search to the form to show all result. I have a download file for search customer here: www.iaccessworld.com/downloads/customer-order-payment/
@renflores7353
@renflores7353 8 лет назад
+austin72406 thank you, I will try it later, how about getting the total of each category, I have field name which have 111, 112, 113, 114, 1141, 115, 1151, 1211, 1212, 1213, 1214 and so on.. I need to group them by first two characters, and get the total, that total of 11(111, 112, 113....) and 12(121, 122, 123...) only reflect in text box, how to do this?, thank you for your help....
@austin72406
@austin72406 8 лет назад
you will need to do it query first as easy way. you will need create a field for group of two (11 or 12). example, groupOfTwo: Left([fieldname],2) then you find the total in report footer by function =sum([groupOfTwo])
@pruthvirajsuryawanshi1377
@pruthvirajsuryawanshi1377 3 года назад
Sir, make a check box button so that the information based on it should be checked
@JeansGaming
@JeansGaming 8 лет назад
Im getting data type mismatch in criteria expression :(
@ziyangli3275
@ziyangli3275 6 лет назад
Yeah me too, the error happens when assigning the "myCustomer" to the RecordSource. Can anyone please help?
@accessbyfarrukhshah
@accessbyfarrukhshah 6 лет назад
i got same error :(
@DenzelMoses
@DenzelMoses 5 лет назад
@@ziyangli3275 same here @Nana Sara please help
@kittlee3704
@kittlee3704 4 года назад
Glad I’m not the only one. Did anyone ever get help on fixing this?
@Missgretelchc
@Missgretelchc 8 лет назад
why is myCustomer?
@brandoncarraway1391
@brandoncarraway1391 4 года назад
I'm in the same boat - why 'myCustomer'? I didn't see that anywhere in the setup?
@ArtyomGalstyan
@ArtyomGalstyan 3 года назад
That is a random name, its just a name of the variable. It could be any random value.
@lilyrose8619
@lilyrose8619 3 года назад
@@brandoncarraway1391 was set in the second line as a dimension "Dim myCustomer As String" :)
@ByronMongeProv
@ByronMongeProv 4 года назад
I get a data type mismatch on me.subform.form.recordsource - mycustomer (strange)
@myem1983
@myem1983 5 лет назад
Hi, I need your help in the last part - I've zero knowledge of VB so please excuse and accept my apologies in advance. Here is my code which I changed as per my requirement... Private Sub cbopol_AfterUpdate() Dim polselction As String polselction = "Select * from SearchRates where ([POL] = " & Me.cbopol & ")" Me.POL.Form.RecordSource = polselction ---- (problem part) - :'( Me.POL.Form.Requery ----- (problem part) - :'( End Sub I'm stuck at me. part..... You have used subform whereas I'm using split form so what should I do? Appreciate your kind assistance. :)
@MsKadzy
@MsKadzy 8 лет назад
when i select something from the combo box in form view a message box comes out asking to enter parameter value :(
@austin72406
@austin72406 8 лет назад
it's incorrect field name. the name shows on the message box is not in your table field name
@Kupertea
@Kupertea 8 лет назад
getting an error: Private Sub cboFirstName_AfterUpdate() Dim myname As String myname = "Select * from Employee where([First_Name] = " & Me.cboFirstName & ")" Me.EmployeeSubform.Form.RecordSource = myname Me.EmployeeSubform.Form.Requery End Sub this is my code used to search peoples first names in my database but i keep getting an error with the section Me.EmployeeSubform.Form.RecordSource = myname the error is the one you had with gender and i have tried what you did to fix the error with the gender search but nothing seems to fix the code, any help would be wonderful
@gemsloveless6483
@gemsloveless6483 9 лет назад
Hi... ive use your codes on my database access. But when i selelct something on my combo box what it does is clear all the data on my subform. Im using access 2007. Can you please help me?
@austin72406
@austin72406 9 лет назад
Please check your code and compare to mine
@codyiwertz6036
@codyiwertz6036 8 лет назад
Hi Austin, the code seems to be working for me, but the table only shows the first entry and it only shows it if the search criteria is met. for example lets say I have 10 pets with 4 different types of pets. only the first pet is coming up after the update if it matches the search criteria, all the other combo box options are blank even if they should be matching a value. Here is the code. maybe I missed something minor: Private Sub Products_Use_AfterUpdate() Dim myRequirment As String myRequirment = "Select * from Software_REQ where ([Versions effected] = '" & Me.Products_Use & "')" Me.Software_REQ_subform.Form.RecordSource = myRequirment Me.Software_REQ_subform.Form.Requery End Sub
@austin72406
@austin72406 8 лет назад
yes, code seems to be correct. it should display only the "Version effected" that equal to the Product_Use
Далее
MS Access - Forms Part 1: Basic forms
11:05
Просмотров 80 тыс.
Symmetrical face⁉️🤔 #beauty
00:15
Просмотров 767 тыс.
Schoolboy - Часть 2
00:12
Просмотров 3,7 млн
Search Button Access 2007 Part - 1
12:24
Просмотров 72 тыс.
Головоломка от дедушки🔥
0:31