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

Home Posts Topics Members FAQ

Losing property values of variables when using a query

accessbunnie
2 New Member
Hello Access Users!

I am a bit of an Access novice and am currently creating a database and have come up against a huge (for me!) road block.

I do not write in Access code and instead, tend to just use design view and wizards to create my databases.

I created a form using a query I created composed of two different tables with the same unique identifier.

All things went fine while I dragged my variables from the field list to the form as I normally would to create a form. However, once I got many variables into the process, when I would drag my variables onto the form they lost all their properties. For example, I created display captions for the variables and instead their field name was displayed. Or a variable would be defined as a check box or combo box and instead turn up as a blank text box.

I have tried rewriting the queries, creating individual forms out of the two individual tables (which worked fine), and rewriting the variables and variable properties. It seems to me the problem is either in the query or the number of variables I have (although I tried creating a form with only a few variables from each table and still had the same problem).

I created the query in design view. The steps I completed are below:

1. Dragged the astriex (to include all variables) from table A into the first column
2. Dragged the astriex from table B into the second column
3. Dragged the ID number (used in table A and B) into the third column
4. Unchecked the box in the third column and changed 'sort' to 'ascending'.

Any help or suggestions what-so-ever will be greatly appreciated! I am completely at a loss.

Best,
Kate
Jul 30 '07 #1
3 2219
JustJim
407 Recognized Expert Contributor
Others please jump in on this as available. I can't stay long.


Here are some ideas based on a quick reading of your problems. Firstly I'm going to assume that when you say "variables" you are talking about Fields in an Access table. Fields are defined as data types so that if a field is defined for example as Yes/No or True/False, Access is clever enough to make that a check box when you put it onto a form. The field itself is not defined as a check box.

Combo boxes are a different matter. You have to tell Access that you want a combo box either in code or by changing details in the properties sheet for that control on that form. The lookup wizard is designed to do this for you, but it does not do a very good job for various reasons. see here for details.

Anyway, to the crux of the problem. Are your tables Joined in the design view of your query? That is, is there a relationship line showing between the two tables?

Do the fields that are losing their properties have the same name as another field in the other table?

Drop in the answers to these, and I or another will try to help further.

Jim
Jul 31 '07 #2
accessbunnie
2 New Member
Hi Jim,

Thank you for your quick reply. To answer your questions:

* In the query design view there is relationship line connecting the two tables together (via the unique identifier which is the same field name in each table). I also created a relationship between the table via the 'relationships' window.

* The fields that drop their properties are unique, in that the same field name is only used once in the entire database.

Thanks again for everyone's help with this.
- Kate
Jul 31 '07 #3
JustJim
407 Recognized Expert Contributor
Hi Jim,

Thank you for your quick reply. To answer your questions:

* In the query design view there is relationship line connecting the two tables together (via the unique identifier which is the same field name in each table). I also created a relationship between the table via the 'relationships' window.

* The fields that drop their properties are unique, in that the same field name is only used once in the entire database.

Thanks again for everyone's help with this.
- Kate
So to double check, you have two tables and each has a field with the same name and you have made a relationship between them?

i.e. Table1!UniqueID<------->Table2!UniqueID

Are the unique ids the primary keys of their tables? This strikes me as an unusual arrangement. The more usual arrangement would be...

Table1!Table1UniqueID(Data type Autonumber)
Table1!ForeignID(Data type Long)<------>Table2!Table2UniqueID(Data type Autonumber)

But nevertheless... does the query work by itself? Does it return the records you expect? Do the column headings match what you put as captions for the fields in question?

Sorry for the delay, I'm in and out at all weird hours at the moment.

Good luck

Jim
Jul 31 '07 #4

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

Similar topics

1
2766
by: Scott Lyon | last post by:
I'm maintaining (read: I didn't write it, nor do I have the time to spend to rewrite it) an application that is suddenly giving me grief. The reason I say suddenly, is because we're in the...
32
3190
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
2
6152
by: Joe Molloy | last post by:
Hi, This isn't a mission critical question but I thought I'dl throw it out there for your feedback as it's a bit curious. I have developed a shopping cart for an application I'm working on...
2
2282
by: Keith | last post by:
Good Afternoon, New to .Net. I am trying to pass date/time values to a MS Access query depending on what value is selected from a dropdown list box (January, February, etc). I have declared...
9
2532
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings...
0
1800
by: jason.friesen | last post by:
Hi Folks I have a custom CMS built in classic ASP that is losing session variables. To wit, I can create a situation where my 'show all the set SVs' test page shows a different set of SVs on each...
2
3099
by: FrankieBakerJr | last post by:
Hello I'm using ASP.NET 2003 on Windows XP SP2. I'm providing a web form that allows users to upload a document (xls, images, doc, pdf, etc) to the server. This part works fine, but after the form...
5
6109
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request...
20
12688
by: teddysnips | last post by:
Weird. I have taken over responsibility for a legacy application, Access 2k3, split FE/BE. The client has reported a problem and I'm investigating. I didn't write the application. The...
0
7128
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
7169
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
7215
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
6892
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
5467
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,...
0
4597
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
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
661
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
294
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.