473,404 Members | 2,170 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,404 software developers and data experts.

Household Bartender Access Tool

Ok, I have a form that is bound to a table called 'Drinks'. This form (named 'Drinks') will allow me to browse through a collection of bartender recipes. I have created a button on this form that will launch another form, wittingly named 'Search', which is unbound. On the 'Drinks' form, it will initially pull a blank record so you can enter a new recipe which is autonumbered by the primary key. You can't browse through any recipes though until you use the search command. On this Search form I have a text box where you can enter in a drink name, three ingredient combo boxes that will allow the user to select an ingredient from a query which builds a list of all distinct ingredients in my table from all 15 ingredient fields, another combo box that allows the user to select of a type of serving glass from a query built to list distinct serving glass types, and a search type indicator that will eventually allow the user to select an 'And' or 'Or' search type. There is a cancel button that will close the Search form if clicked. The problem is the 'Search' button on this form. When I click this button what I would like to happen is for the VBA (which I know NOTHING about) to execute and return values back to the form from the table. For example, if I type in amaretto as a drink name, and then choose amaretto as an ingredient and sours mix as an ingredient and hit the 'And' indicator, it will return all results that have a name LIKE amaretto and has both ingredients in the recipe. If I would hit the 'Or' indicator it would return all results that something LIKE amaretto in the name, contains amaretto as an ingredient, or contains sours mix as an ingredient back to the form for me to browse through.

The question is, how do I make this happen? I have no friggin clue how to use VBA and I could really use some advice on this one. If anyone wants, I can e-mail them screen shots to show them whatever they want to see. ** Edit / Removed **. Thanks everyone!

Best,

Aaron
Jul 31 '08 #1
3 1948
Delerna
1,134 Expert 1GB
Yep.
Thats a big answer for 1 forum post.
You will have to use VBA.
So, I suggest you take a step backwards from your project and start some small database projects with the sole intention of learning to use vba to access the database objects such as tables forms queries etc.
Do you have any programming experience with other languages?
Don't worry, basic is a relatively easy language to learn.
Also we are here to help you over specific difficulties. Not to write the app for you, but we are more than willing to answer questions in areas you are having trouble with.

Once you are more familiar with vba then you will be able to start asking specific questions related to your project.

NOTE
I suggest you get in the habit of prefixing your objects with lowercase 3 character codes. For example you have a table called Drinks and you have a form called Drinks and at some stage you may have a query called Drinks.

If you reference Drinks in VBA.
Later on when you are debugging or extending your code, and you come across a reference to Drinks, how are you going to know which object you meant?


Much better if you use
tblDrinks for the table
qryDrinks for the query
frmDrinks for the form

Now in code you will instantly know which object tblDrinks is refering to when you see it.
This is called Hungarian notation and there is a set of commonly used prefixes in the helpfiles for access as well as on the internet.
You can use those or make up your own. Other programmers will recognise them if you use the established ones though

Good luck
Jul 31 '08 #2
Delerna
1,134 Expert 1GB
By the way. I suggested to start new databases for you learning so you don't corrupt what you have done in your drinks database by doing something wrong in VBA while you are learning
Jul 31 '08 #3
NeoPa
32,556 Expert Mod 16PB
Aaron,

I've removed your email address from the public forum. We don't allow that here - mainly for your own safety.

As to your question, I will leave you in Delerna's capable hands for the moment, but you should realise that what you ask is not something appropriate for a beginner. It's quite advanced in practice.

Not that we can't help you get there - just don't be hard on yourself if you find it all a little complicated at times.

If it helps - Example Filtering on a Form is a sort of tutorial that uses some of the fundamental concepts of working dynamically with SQL strings and applying filters to forms that you will probably be using in this.

HTH & Welcome to BYTES!
Aug 5 '08 #4

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

Similar topics

3
by: Mark V. | last post by:
Here's what I have and I'm stumped. I have a table that has several thousand names and addresses. I only want to send to one address in a household. So what I would like to do is create a new...
13
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
6
by: Woody Splawn | last post by:
It is real important to choose the right tool for a given problem and it is not clear to me just what the advantage of VS.net is over Access, for example, when writing a non-web applicaiton. I see...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
4
by: Chris Dunaway | last post by:
We have an app that will be run from a network share. I know that on the machine that will run the app, I need to grant the proper permissions. On the laptop, I installed the .Net framework...
7
by: dtecmeister | last post by:
Looking to see how many people could use this kind of tool. I've got several large databases I've developed in Access with MySQL as the back-end. I've started using Linux instead of windows and...
4
by: Anns via SQLMonster.com | last post by:
My company currently has about 20-25 Ms Access Database that they want to replace the FE with .net and the BE on SQL. This will be done using Visual Studio 2005. Once the FE is converted to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.