473,320 Members | 1,961 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,320 software developers and data experts.

Form not reflecting query data

I am a self taught access user who muddles along! I have a database which has two tables one for recording staff details and the other to record their contract details - they are linked by their payroll number. I have built a group by query which returns the latest contract details entry for each payroll number I have then built an additional query so that I can add in additional info such as name, salary, contract end date, etc.

This works fine and when I run the query I see the newest entry for each person. However, I wanted to build a form to reflect this query in order to present the info in a user friendly and standard way but the form does not reflect the query info and instead is giving me all records in the table. How do I change this?
Nov 30 '07 #1
1 1457
puppydogbuddy
1,923 Expert 1GB
I am a self taught access user who muddles along! I have a database which has two tables one for recording staff details and the other to record their contract details - they are linked by their payroll number. I have built a group by query which returns the latest contract details entry for each payroll number I have then built an additional query so that I can add in additional info such as name, salary, contract end date, etc.

This works fine and when I run the query I see the newest entry for each person. However, I wanted to build a form to reflect this query in order to present the info in a user friendly and standard way but the form does not reflect the query info and instead is giving me all records in the table. How do I change this?
1. Place the form in design view
2. Invoke the form's property sheet.
3. Go to record Source property and reference your query instead of the table.
Nov 30 '07 #2

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

Similar topics

0
by: San | last post by:
Hello, I have DataSet which has a table named bills . I'm filling this bills table from another class named Class2 which also has the bills table with same schema. After copying the data from...
0
by: DotNetJunkies User | last post by:
I have to deserialize an XML document to objects and then serialize it back to XML to pass to the stored proc. I am attaching partial code. After this , I also have to serialize Here is the XML :...
3
by: Steve | last post by:
Form FrmRestock's recordsource is QryFrmRestock. The TransactionDate field's criteria is set ats: Forms!FrmRestock!LastXDays. LastXDays on the form is a combobox where the selections are 30, 60...
3
by: | last post by:
Hi all, I have a question on reflection Lets say I have a custom object called Address. Now, lets say I have a string variable that holds the name of a variable in the object such as...
2
by: Robert | last post by:
I am trying to give the user dynamic search capabilities to select almost any record in the database from criteria they select. Everything seems to work except when I open the display form to...
2
NeoPa
by: NeoPa | last post by:
CHAPTER 1 - TABLE OF CONTENTS (Including attached database) CHAPTER 2 - INTRODUCTION CHAPTER 3 - TABLE LAYOUT CHAPTER 4 - FORM LAYOUT CHAPTER 5 - FORM MODULE CHAPTER 6 - CODE DISCUSSION (FILTER...
8
by: hoofbeats95 | last post by:
I don't think this should be this complicated, but I can't figure it out. I've worked with C# for several years now, but in a web environment, not with windows form. I have a form with a query...
1
by: DAObermeyer | last post by:
Hey all, first time here. I have a database that is designed to be opened and viewed at other locations on the network. I use Form (A) to modify Data in Table (A), and Form (B) is used scrictly...
1
by: Shana | last post by:
Hi all, can anyone answer my query: Actually i making changes in my javascript code and when i am running my page in the browser it is not reflecting the change immediately. Sometime it...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.