473,480 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How can I make intellisense appear as user types in a textbox in ms access 2007?

99 New Member
Is it possible for a textbox to predict phrase as user types in?I know comboboxes can make it happen but what if I want a text box to do the same and predict string?
Mar 16 '12 #1
12 3570
NeoPa
32,556 Recognized Expert Moderator MVP
It's probably possible, but would involve quite a bit of coding and handling of characters at a low, and detailed, level.
Mar 16 '12 #2
HiGu
99 New Member
Okay.If it is possible then how?I searched a lot but could not find any relevant idea.
Mar 17 '12 #3
NeoPa
32,556 Recognized Expert Moderator MVP
It would involve building a database to handle the possibilities and managing keystrokes manually. This is so large a project that it is not an appropriate question for these forums. Having said that, it may not be clear how large a project it is without understanding what it involves, so I understand why you might ask it.

Essentially, this is much, much bigger/more complicated than you might have thought, and if you're asking for help at that level then I very much doubt you could handle it.

If you disagree, then the first step would be to do the consideration for the project of exactly what you would need in such a project. If you were to do a proper job of that then I suspect you'd start to understand why I say what I do.
Mar 17 '12 #4
rekedtechie
51 New Member
Expand|Select|Wrap|Line Numbers
  1. 'declare global variable
  2. Dim lastSrchs[] As String
  3. Dim i As Integer = 0
  4.  
  5. 'button click code
  6. lastSrchs[i] = textboxSearch.text
  7. i = i + 1
  8.  
  9. 'textbox change code
  10. Dim isTriggerX As Boolean
  11. Dim chrToCompare As String
  12. Dim chrOflastSrch As String
  13. chrToCompare = Trim(txtboxSearch.text)
  14. isTriggerX = 0
  15. For x = 0 To i
  16. chrOflastSrch = Trim(lastSrchs[x])
  17. if chrOflastSrch = chrToCompare Then
  18. listboxRelated.add lastSrchs[x]
  19. listboxRelated.Visible = 1
  20. isTriggerX = 1
  21. End if
  22. If isTriggerX = 0 Then
  23. 'clear list.
  24. End If
  25. Next x
Mar 17 '12 #5
rekedtechie
51 New Member
im not sure about this codes.. but i think array can be used as data storage.. if the system is closed the array will reset.
or else..
you are willing to save the array values in your database.. which is not good at all.. because theres a high posibility that you save nonsense data in your database. making your database crowded. =)
Mar 17 '12 #6
NeoPa
32,556 Recognized Expert Moderator MVP
Please review Before Posting (VBA or SQL) Code.

@rekedtechie
I have to disagree strongly with your analysis. Anything other than a table to store the information would be wholly inappropriate and would fail to manage and reflect previous usage. Managing the entries used only in the current session would be pointless, as the data across that session wouldn't even start to be worth the effort.

I can't say too much about the code except that we like compiled code here for good reason. Such code that is uncompiled and uncompilable tends only to mislead users. Even looking at it as pseudo-code I fail to see how it can be considered even as illustrating the fundamental logic required for this question. The obvious omission of any event procedures indicates clearly it cannot correctly handle the problem raised.

I'm not here to have a go at your code. I just felt it was important not to allow the idea that it is a viable solution to go unchallenged, as it misleads those less experienced and less capable members into following a dead-end path.
Mar 17 '12 #7
rekedtechie
51 New Member
@mod[NeoPa]

im sorry but i dont have PC at home..
i do all my school project at computershop, and that makes me 'ughh..' for the rest of my college life..
i need to bypass all security just to make my assignments..
thats the reason why its so hard being a poor..haha :))

-but thanks to your post now i know that i dont need to create a project that will save temp data..im trying to relate with vba.. because i saw macros before and its totaly looks like vb6.. =)
Mar 18 '12 #8
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
I would like to know why you are so adamantly against using a combobox?

You can make a combobox act more like a textbox if that is what you require, and its far easier then making a textbox act like a combobox.
Mar 18 '12 #9
NeoPa
32,556 Recognized Expert Moderator MVP
Who's adamantly against use of the ComboBox Smiley?
Mar 18 '12 #10
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
@NeoPa
As I re-read the first post I see that the word "adamantly" is an exageration. I was merely wondering why HiGu would like to NOT use the combobox.
Mar 18 '12 #11
HiGu
99 New Member
Hey.I am not against using a combobox.I know that would be easier in this case.I am a fresher in an IT company and a search textbox is what my clients have requested for.Now I see I will give them a combobox only with the features they want.Thank you all for a good discussion over this.I actually thought vba must have some built-in functions for this.
Mar 19 '12 #12
NeoPa
32,556 Recognized Expert Moderator MVP
@HiGu
I still believe it's unwise even to consider such an endeavour at your level of understanding. Ultimately it's your call of course.
Mar 19 '12 #13

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

Similar topics

9
2517
by: refer_to_website | last post by:
My VB.NET web application has a textbox where the user is allowed to enter up to 50 characters. I have a label on the form next to the textbox that tells the user how many remaining characters he...
49
4312
by: Allen Browne | last post by:
If you are looking for opinon on what's useful in Access 2007, there's a new article at: http://allenbrowne.com/Access2007.html Covers what's good (useful features), what's mixed (good and bad),...
4
5443
by: Neil | last post by:
Just found out that the Microsoft Rich Textbox does not support full text justification, since it's based on Version 1.0 of the RichEdit Window Class, and full text justification is only available...
16
11032
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
1
2023
by: PatdeLux | last post by:
Hi, I have have an Access 2003 application with Sql Express as back end. After migrating the front end to Access 2007, users have a serious problem: One form contains text controls bound to...
7
3346
by: Robert S. | last post by:
Searching some time now for documents on this but still did not find anything about it: Is it possible to replace the entry screen of MS Office Access 2007 - that one presenting that default...
3
9830
by: blueskies | last post by:
Hi All, Can someone please advise how to create users and user groups in Access 2007. In 2003 it was simple and straight forward, and at the risk of sounding stupid I can't find the same...
2
1968
by: HSXWillH | last post by:
I'm working in Access 2007 and coming to something that's always caused me problems. I have a form titled frmUsers. There are 3 subforms that list exercise dates and exercise types for each user. ...
0
1557
by: Seun Oguntomini | last post by:
Hi, How are you and work? Pls am a user of Microsoft Access 2007. There is need for me to enter multiple words in a field in MS Access 2007 which am finding it difficult to do For me to be able...
0
1379
by: Elaine Huseby | last post by:
I have a form "PartsAndInvoices that has all the parts in the database listed in split form view. I want the user to use Access 2007's filter section on the ribbon to choose mutiple filters....
0
6920
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
7059
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7103
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...
1
6758
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4499
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3003
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.