473,770 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Auto fill

I have been trying to auto fill fields with DLookup - but it doesn't
seem to work..... can you help...

I have a name field and I want the address to automatically fill in
when the name field is filled in. I have load of othre fields that
would benefit from this so I need to get it working....

=DLookUp("[Gpcode]","[Conwydata]","[Gpcode] =[gp_practice]")

I have an unbound gp_practice field and want to fill in the gpcode
automatically.. . the table is called Conwydata - I followed the help so
where am I going wrong?

Elaine

Aug 17 '06 #1
2 2763
Baz
"Elainie" <El************ **@bsc.wales.nh s.ukwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
I have been trying to auto fill fields with DLookup - but it doesn't
seem to work..... can you help...

I have a name field and I want the address to automatically fill in
when the name field is filled in. I have load of othre fields that
would benefit from this so I need to get it working....

=DLookUp("[Gpcode]","[Conwydata]","[Gpcode] =[gp_practice]")

I have an unbound gp_practice field and want to fill in the gpcode
automatically.. . the table is called Conwydata - I followed the help so
where am I going wrong?

Elaine
If Gpcode is text:

=DLookUp("[Gpcode]","[Conwydata]","[Gpcode] =""" & [gp_practice] & """")

or, if it's a number:

=DLookUp("[Gpcode]","[Conwydata]","[Gpcode] =" & [gp_practice])
Aug 17 '06 #2
"Elainie" <El************ **@bsc.wales.nh s.ukwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
>I have been trying to auto fill fields with DLookup - but it doesn't
seem to work..... can you help...

I have a name field and I want the address to automatically fill in
when the name field is filled in. I have load of othre fields that
would benefit from this so I need to get it working....

=DLookUp("[Gpcode]","[Conwydata]","[Gpcode] =[gp_practice]")

I have an unbound gp_practice field and want to fill in the gpcode
automatically.. . the table is called Conwydata - I followed the help so
where am I going wrong?
I think where you're going wrong is with the basic concept. Your names and
addresses should be in a lookup table so that, when you select a name you
get the address data (and any other data pertinent to the name selected) for
free.

Take a look at the way they handle "customers" in the Northwind sample
database that ships with Access.

HTH - Keith.
www.keithwilby.com
Aug 17 '06 #3

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

Similar topics

4
2716
by: Sims | last post by:
Hi, I have a table that give a unique ID to certain Articles. To give the ID i simply use the Auto count of the DB. But what happens when i delete a record? i am now missing an ID. How can i insert a row and give it the first available number? For example ID 1, 2, 4, 5, 6
1
2375
by: Maurice Mertens | last post by:
Does anyone know how to get an auto-filling combobox on a form? When I add a combobox to a form I can set the DropDownStyle property to DropDownList. This will make the combobox auto-filling. But the user then can't enter text in the combobox which isn't in the list. So I have to set the DropDownStyle property to DropDown to enable the user to enter text which isn't in the list. But unfortunately the combobox doesn't auto-fill the text...
3
2124
by: Maurice Mertens | last post by:
Hi all, In VB.NET you can set the DropDownStyle for a combobox to 'DropDown' or 'DropDownList'. When you set it to DropDownList, it supports auto-fill. But when you set it to 'DropDown', the auto-fill support is gone. How can I get auto-fill on a combobox with a dropdownstyle 'DropDown'? --
1
668
by: Benny | last post by:
Hello experts, Currently I am working on a web application using vs.net with c#. One of the project task is creating invoices. After the invoices are created, the user needs login to a government website and enter the same invoice information again. Since the information entered to the government website are the same as
1
4141
by: qwas2123 | last post by:
Hi, Im trying to build a form that within the form it has a feature that if you input data into a certain text box, from there, it will automatically fill the rest of the text boxes on the form based on the information of specific tables. Example : ID___________ Name "auto" ____________ Loc "auto" ____________ Rank "auto" ____________ etc . . . I...
0
2696
by: KelHemp | last post by:
Greetings, I've been using this site for lots of access help in the past, and it's very helpful! I have a new complexity for you all. Reworking a form to record 70-80 years of oil production on multiple leases, which have multiple wells within them. Most wells can fit on one printed page (one record), but in the case of overspill, we want to do the following: -Move to a new record and auto fill the LeaseName, LeaseNumber, Operator,...
0
2096
by: Boki | last post by:
Hi All, I am creating a program that performs "auto fill in" and "auto submit" functions. I will feed the webbrowser the target URL, however, I don't know how to auto fill in text and submit. About the submit, I ever tried to use Navigating to catch the new
3
3095
by: Steve67 | last post by:
I didn't see a search feature in these forums, so I couldn't look up this question and I am sure it is a common questions. I am trying to auto fill some information on an form. Here is what I have going on. I created a form that will fill in information on one table, but I also want information from another table on this form, but I want this infomation to automatically fill in was soon as I type lets say a part number. I tried to do this by...
10
2553
by: Charles Richmond | last post by:
Is there some parameter I can set via Javascript that will cause the browser to *not* auto-fill forms, regardless of the browser settings??? -- +----------------------------------------------------------------+ | Charles and Francis Richmond richmond at plano dot net | +----------------------------------------------------------------+
0
9453
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
10099
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...
0
9904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7451
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5481
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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 we have to send another system
2
3607
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.