473,847 Members | 1,499 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why not use lookup wizard?

I was reading on the mvps.org site not to use the lookup wizard in the
table design, but rather use a query. I'm confused by this, given that
the lookup wizard basically creates a query and uses it as the data
source - you can see it in the "Lookup" tab in the table design window.

So, what gives? :)
Jan 15 '06 #1
5 3902
Kevin wrote in message <pa************ *************** *@hotmail.com> :
I was reading on the mvps.org site not to use the lookup wizard in the
table design, but rather use a query. I'm confused by this, given that
the lookup wizard basically creates a query and uses it as the data
source - you can see it in the "Lookup" tab in the table design window.

So, what gives? :)


What did you read, did you read the
http://www.mvps.org/access/lookupfields.htm
or just
http://www.mvps.org/access/tencommandments.htm
?

I would have thought the first of them to answer your questions - the
"lookup wizard" does a fair bit more then "basically creates a query
and uses it as the data source", and most of that, causing extra work,
confusement ...

--
Roy-Vidar
Jan 15 '06 #2
On Sun, 15 Jan 2006 12:32:05 +0000, RoyVidar wrote:
Kevin wrote in message <pa************ *************** *@hotmail.com> :
I was reading on the mvps.org site not to use the lookup wizard in the
table design, but rather use a query. I'm confused by this, given that
the lookup wizard basically creates a query and uses it as the data
source - you can see it in the "Lookup" tab in the table design window.

So, what gives? :)


What did you read, did you read the
http://www.mvps.org/access/lookupfields.htm or just
http://www.mvps.org/access/tencommandments.htm ?

I would have thought the first of them to answer your questions - the
"lookup wizard" does a fair bit more then "basically creates a query and
uses it as the data source", and most of that, causing extra work,
confusement ...


I just found the 10 commandments, didn't see the other page. :)

So, if I used the Lookup fields and I now want to change it, can I just
change the field type, or do I need to do something else?
Jan 15 '06 #3
Kevin wrote in message <pa************ *************** *@hotmail.com> :
On Sun, 15 Jan 2006 12:32:05 +0000, RoyVidar wrote:

I just found the 10 commandments, didn't see the other page. :)

So, if I used the Lookup fields and I now want to change it, can I just
change the field type, or do I need to do something else?


Well ... best thing would be to not use them from the beginning ;-)

See - when you create forms and reports based on tables containing
this,
those properties are inherited ...

So - what I would recommend, is stop using them for new projects.

Should you wish to do something with them now, then don't alter the
fieldtype, cause that's matching the primary key of the looked up
table,
but change the Display Control property of the control (in the lookup
tab) from Combo box to Text Box. This will stop inheriting this to new
forms and reports.

Then remove those from the forms and reports too, and for the forms,
create combos (through the combobox wizard) on the forms in stead, and
for the report, include the lookup table, and the looked up field in
the
query used as recordsource of the report.

--
Roy-Vidar
Jan 15 '06 #4
On Sun, 15 Jan 2006 21:23:49 +0000, RoyVidar wrote:
Kevin wrote in message <pa************ *************** *@hotmail.com> :
On Sun, 15 Jan 2006 12:32:05 +0000, RoyVidar wrote:

I just found the 10 commandments, didn't see the other page. :)

So, if I used the Lookup fields and I now want to change it, can I just
change the field type, or do I need to do something else?


Well ... best thing would be to not use them from the beginning ;-)

See - when you create forms and reports based on tables containing this,
those properties are inherited ...

So - what I would recommend, is stop using them for new projects.

Should you wish to do something with them now, then don't alter the
fieldtype, cause that's matching the primary key of the looked up table,
but change the Display Control property of the control (in the lookup tab)
from Combo box to Text Box. This will stop inheriting this to new forms
and reports.

Then remove those from the forms and reports too, and for the forms,
create combos (through the combobox wizard) on the forms in stead, and for
the report, include the lookup table, and the looked up field in the
query used as recordsource of the report.


I'm still early in the project, I'll just change the display control and
delete all the existing forms (2 of them). I try to spend all of my
initial time normalizing the data and creating the queries I need, then
forms, then reports.

Thanks,

Kevin
Jan 15 '06 #5
Kevin <wi******@hotma il.com> wrote in
news:pa******** *************** *****@hotmail.c om:
I'm still early in the project, I'll just change the display
control and delete all the existing forms (2 of them).


I don't see why you need to do anything to the forms. If I'm
remembering correctly, when you drop a field defined as a lookup
onto a form, it creates a combobox that duplicates the lookup
combobox. The result is that you shouldn't have to alter your forms
at all.

In short, the lookup really only affects the table view and criteria
in the query designer.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jan 16 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5523
by: Jim Stacey | last post by:
Create Lookup field with Visual Basic Can i create a lookup field on the fly? In my table Students i want to create a loookup field TeacherID that looks up teachers by their LastName. Otherwise i use the Lookup wizard in the table, then i connect with the table Teachers and then i hide the teaccherid. I want to create this lookup field without the help of the wizard.How can i do it ?
3
2932
by: my-wings | last post by:
I've been reading about how evil Lookup fields in tables are, but I've got to be missing something really basic. I know this subject has been covered before, because I've just spent an hour or two reading about it on google, but there is something I still don't understand, and I'm hoping someone will be willing to explain it to me in small words. Let's say I have a table for addresses, and it includes a field for state. What I would...
3
1406
by: xmp333 | last post by:
Hi, Is there a way to use a 2 column table as a lookup for a combo box, having one field show up on the form, and the other field actually written to the output table? Here's an example: I have a reference table called "R" with the following values: { (0, 'Price'),
1
1307
by: Splashout | last post by:
I am having a problem with how to get a lookup to work how i want. What i want is the user to be able to use the lookup on a form to select the supplier for that product however there is different classes of supplier and i only want them to see the relevent class on that form? All suppliers are held in one table with their own ID Name and Class The job table is the other table where one record will contain multiple items all of which...
3
1255
by: Splashout | last post by:
I am having a problem with how to get a lookup to work how i want. What i want is the user to be able to use the lookup on a form to select the supplier for that product however there is different classes of supplier and i only want them to see the relevent class on that form? All suppliers are held in one table with their own ID Name and Class The job table is the other table where one record will contain multiple items all of which...
3
10684
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems that are hard to find. The main problem I am having right now is that I have a report that is sorted by one of these lookup fields and it only displays the record's ID number. When I add the source table to the query it makes several records...
1
3376
by: James | last post by:
I am used to VB6 but need to develop something in .Net. I need to create several bound combo-boxes which will use lookup tables to get their values. I created a form using the dataform wizard. As part of the setup, I specified a new dataset, which included the data & lookup tables. I also specified the relationships when required. I then added a combo box control to my form, following the instructions from
4
4624
by: jon f kaminsky | last post by:
Hi- I've seen this problem discussed a jillion times but I cannot seem to implement any advice that makes it work. I am porting a large project from VB6 to .NET. The issue is using the combo box bound to a table as a lookup, drawing values from another table to populate the available selections. This all worked fine in VB6. I have distilled the problem down to a simple form drawing data from the Northwind database for a representative...
1
1431
by: =?Utf-8?B?bXBy?= | last post by:
In an Access table, I have a field that is a Lookup Wizard. I notice that in the 2007 version, when a lookup is used, the datatype is changed to number. I think this might be my problem. When I create a query which uses this field, and I add criteria to the field, I get a data mismatch. I need to find certain records using this field, and it is causing me trouble.
0
9892
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9734
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10995
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10654
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10718
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9493
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5915
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4130
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3168
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.