473,385 Members | 2,243 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Limit browseable records with combobox

hi,

I have a little problem here..

when I create a form to browse trough records, everything works fine.
When I'm on a certain record and say, 'manufacturer' is on 'Apple' and I do a right click "filter by selection", I browse trough the records with only 'Apple' as manufacturer.

Why can't I edit the textbox to put Apple for example and then filter? I know this is possible while in datasheet view (by selecting 'apple' and then 'filter by selection', but this shouldn't be authorized for normal users (the datasheet view).
Or to do things better, the user could make a choice with a combobox. But the same problem occurs with that solution:

I can't select a value in the combobox to filter the browseable records. I only can see them, not click on them. I managed to make it clickeable, I don't remeber how, but then it changes that value of the current record, and this is not an action that should be authorized of course.

Anyone knows how to do this?
Aug 10 '09 #1
6 3189
Or is this a limitation of Access?
Aug 11 '09 #2
No one has an answer? Of is this a stupid question?? :$
Aug 12 '09 #3
ChipR
1,287 Expert 1GB
I'm not sure what you mean when you say you can't select a value from a combo box. If you want to use a combo box to filter your form, you could put an unbound combo box in the form header, set it's record source to the manufacturers, and add code to it's AfterUpdate event.
Expand|Select|Wrap|Line Numbers
  1. Private Sub cmbManufacturerFilter_AfterUpdate()
  2.     Me.Filter = "Manufacturer = '" & cmbManufacturerFilter & "'"
  3.     Me.FilterOn = True
  4. End Sub
Aug 12 '09 #4
even if you didn't quite understand :p you got the answer.

Well, with "I can't select" I mean that i can open the drop down list from the combobox, but when I click on a value from the drop down list, it is like I never clicked.. the drop down list stays open and nothing changes.

So what I have to do is change my first combobox into a textbox (that will display the value for the current record, like other info (eg. 'serial number' or 'processor').
And then change the form header, by placing comboboxes in there, in order to filter the 'content' of the records.

Did I understand you right?
For me it wasn't logic to have one object to choose a value and another one to display a value, I wanted to do both with the same object, the combobox in this case...
Aug 12 '09 #5
ChipR
1,287 Expert 1GB
You should be able to use a combo box to allow the user to change the value of the record in the table. Can't figure out at the moment why that would be locked and not allow you to select. Text box is fine for display though.

But, yes, the combo for filtering is a different story, and should not be bound to your table. Filtering doesn't affect the content of the current record, though. It makes your form only display some of the records in the underlying recordset. Is that what you're going for?
Aug 12 '09 #6
yes, it is exactly that what I'm going for! Thanks for the help, again :D
Aug 12 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Pete | last post by:
I have a combobox which is used to select records, which is satisfactory at the moment. However, a second user is going to start using this database and there will be 1600 records. This makes...
10
by: Tosch | last post by:
I have a combobox where a user can select a zoom factor or enter a zoom factor. I tried to limit entry into the combobox to numbers only by catching the keydown event and setting e.handled = true...
3
by: Georges Heinesch | last post by:
Hi. I have a ComboBox in a table (tbl1), which is populated by another table (tbl2). The ComboBox "Row Source Type" is set to "Table/Query", and the "Row Source" is set to "tbl2". In this...
1
by: Harry | last post by:
I have two tables in a database. One fills the drop-down and the other records the selection. Filling the dropdown with another table seems to be breaking the binding with the table it records to....
2
by: claudia.carlotti | last post by:
Anyone knows how to avoid the limit to 36000 records that access has with a combo box? Any help will be appreciated. Many Thanks... Claudia
5
by: grant | last post by:
I'm trying to use a scatter chart to plot level reading for a pump station level sensor. The sensor takes a reading every 4 seconds, and there are 23,000 reading per chart There appears to be...
7
by: Heggr | last post by:
I am learning ASP as I go while working on this project. I know VB and Access. The page will have a combobox that will be populated from a SQL database and the user will be selecting from the...
1
by: BASSPU03 | last post by:
I've set my combobox to operate according to this option: "Find a record on my form based on a value I selected from my combobox." When I select a value from the combobox, I can see that the...
2
by: kurtzky | last post by:
i created a form that should function as follows: i will enter a number in a textbox..then it should query from the database all the records which has that number..these records will have a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.