A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combo Box Form Query - Erases Existing Fields When Formatted



 
 
Thread Tools Display Modes
  #1  
Old August 27th, 2008, 09:16 PM posted to microsoft.public.access.forms
als
external usenet poster
 
Posts: 7
Default Combo Box Form Query - Erases Existing Fields When Formatted

I have a .mdb table (TreeDatabase2008_Points_sp) Linked in to my
access database.
From that linked table I have created a form (with the form wizard)
that will be used for adding and editing values in the table.
By the way, this table has approximately 15 fields and 18000 records
in each field and i am using Access 2007 on a windows xp machine.
For the ease of add/ editing the data, I have created a combo box with
the following query for my first field:

SELECT DISTINCT TreeDatabase2008_Points_sp.Street
FROM TreeDatabase2008_Points_sp
ORDER BY TreeDatabase2008_Points_sp.Street;

This query allows all of the existing records to be in alphabetical
order and show no duplications.
The problem is: Once I run the query, all of the Existing data (18000
records) that was in the field in the form is deleted. It still
appears in the table but it is gone from the form.

I am a new user to Access and I'm sure this is probably an elementary
question but if anyone could help I would really appreciate it.
Thanks,
alison
  #2  
Old August 27th, 2008, 11:52 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Combo Box Form Query - Erases Existing Fields When Formatted

In design view click on the combobox, doubleclick and select properties.
Select the field name for the Control Source.

--
KARL DEWEY
Build a little - Test a little


"als" wrote:

I have a .mdb table (TreeDatabase2008_Points_sp) Linked in to my
access database.
From that linked table I have created a form (with the form wizard)
that will be used for adding and editing values in the table.
By the way, this table has approximately 15 fields and 18000 records
in each field and i am using Access 2007 on a windows xp machine.
For the ease of add/ editing the data, I have created a combo box with
the following query for my first field:

SELECT DISTINCT TreeDatabase2008_Points_sp.Street
FROM TreeDatabase2008_Points_sp
ORDER BY TreeDatabase2008_Points_sp.Street;

This query allows all of the existing records to be in alphabetical
order and show no duplications.
The problem is: Once I run the query, all of the Existing data (18000
records) that was in the field in the form is deleted. It still
appears in the table but it is gone from the form.

I am a new user to Access and I'm sure this is probably an elementary
question but if anyone could help I would really appreciate it.
Thanks,
alison

  #3  
Old August 28th, 2008, 09:14 PM posted to microsoft.public.access.forms
als
external usenet poster
 
Posts: 7
Default Combo Box Form Query - Erases Existing Fields When Formatted

On Aug 27, 6:52 pm, KARL DEWEY
wrote:
In design view click on the combobox, doubleclick and select properties.
Select the field name for the Control Source.

--
KARL DEWEY
Build a little - Test a little



Thank you for your comment.
But I already have the field name selected for the Control Source.
Any other suggestions?
  #4  
Old August 28th, 2008, 10:40 PM posted to microsoft.public.access.forms
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Combo Box Form Query - Erases Existing Fields When Formatted

Ok, these may seem like silly questions but I can not see your database.
What do you have for the following --
Row Source
Control Source
Column Count
Column Widths

--
KARL DEWEY
Build a little - Test a little


"als" wrote:

On Aug 27, 6:52 pm, KARL DEWEY
wrote:
In design view click on the combobox, doubleclick and select properties.
Select the field name for the Control Source.

--
KARL DEWEY
Build a little - Test a little



Thank you for your comment.
But I already have the field name selected for the Control Source.
Any other suggestions?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.