473,396 Members | 2,010 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,396 software developers and data experts.

Append query help

Hi - I am trying to perform a simple append query, with no luck. I
have a table (MktPrices) that has the following fields: BondID,
PriceDate, Price. The objective is to allow the user to input a date
and have the append query create a new record for each BondID, using
the input date and the most recent price - which the user can then
update on a tabular form. I have created a totals query
(qryMostRecentPrice) which selects the most recent price (Max of Date,
group by BondID) for each BondID, but cannot work out the append
query. Thanks, John
Nov 12 '05 #1
2 5218
John,

You apparently have a Bonds table with a primary key of BondID. How about
setting up a form/subform where the main table is based on the Bonds table and
the subform is based on the MktPrices table. The LinkMaster/LinkChild properties
would be BondID. In the subform you could have one textbox bound to PriceDate
and one textbox to enter Price. In the AfterUpdate event of the Price textbox
put this code: Me!NameOfPriceDateTextBox = Date()

So you could go to a Bond in the main form and the subform would automatically
go to the Price records of that Bond. You could enter today's price for the Bond
and the code would automatically enter today's date for you in the PriceDate
textbox. The PriceDate textbox would be editable so that if the price was for
another day rather than today, you could change today's date to the appropriate
date.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
www.pcdatasheet.com
"John" <jo********@hotmail.com> wrote in message
news:a1*************************@posting.google.co m...
Hi - I am trying to perform a simple append query, with no luck. I
have a table (MktPrices) that has the following fields: BondID,
PriceDate, Price. The objective is to allow the user to input a date
and have the append query create a new record for each BondID, using
the input date and the most recent price - which the user can then
update on a tabular form. I have created a totals query
(qryMostRecentPrice) which selects the most recent price (Max of Date,
group by BondID) for each BondID, but cannot work out the append
query. Thanks, John

Nov 12 '05 #2
Hi - I actually already have the form/subform you are describing set
up. That particular form, as you describe, lists the bond description
information along with a price 'history' subform for each bond.

The new form that I am trying to create (based off of the append
query) will be a simplified tabluar form that will allow the user to
update all prices quickly by having a single row for each security:
BondID and price. I would like the user to be able to click a button,
be prompted for the date, have the append query create the new price
records, and then have the new tabular form open.
"PC Datasheet" <sp**@bellsouth.net> wrote in message news:<ig***************@newsread1.news.atl.earthli nk.net>...
John,

You apparently have a Bonds table with a primary key of BondID. How about
setting up a form/subform where the main table is based on the Bonds table and
the subform is based on the MktPrices table. The LinkMaster/LinkChild properties
would be BondID. In the subform you could have one textbox bound to PriceDate
and one textbox to enter Price. In the AfterUpdate event of the Price textbox
put this code: Me!NameOfPriceDateTextBox = Date()

So you could go to a Bond in the main form and the subform would automatically
go to the Price records of that Bond. You could enter today's price for the Bond
and the code would automatically enter today's date for you in the PriceDate
textbox. The PriceDate textbox would be editable so that if the price was for
another day rather than today, you could change today's date to the appropriate
date.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
www.pcdatasheet.com
"John" <jo********@hotmail.com> wrote in message
news:a1*************************@posting.google.co m...
Hi - I am trying to perform a simple append query, with no luck. I
have a table (MktPrices) that has the following fields: BondID,
PriceDate, Price. The objective is to allow the user to input a date
and have the append query create a new record for each BondID, using
the input date and the most recent price - which the user can then
update on a tabular form. I have created a totals query
(qryMostRecentPrice) which selects the most recent price (Max of Date,
group by BondID) for each BondID, but cannot work out the append
query. Thanks, John

Nov 12 '05 #3

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

Similar topics

1
by: PMB | last post by:
Thank you in advance for any and all assistance. I'm trying to use a make table query to pull the last transactionID, so I can use an append query to reset the transactionID to the next...
2
by: anita | last post by:
I am sorry if this sounds as a silly problem. I have table 1 with 10 records and table 2 with 20 records. I want to append 20 records from Table 2 to table 1. But when I run the append query, the...
1
by: David Barger | last post by:
Greetings, It appears that an Append Query I run in Access XP is randomly failing to append a field. I have payroll data being entered into a payroll database. This data is exported daily to...
0
by: jon | last post by:
Hi there, I'm brand new to Access and may be trying to do too much too soon, but I wanted to get some expert advice on how the best way to go about what I am trying to accomplish would be. I...
16
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for...
3
by: Neekos | last post by:
i have code that loops through a recordset and checks to see if a condition is true. If it's true, i want to send that record to a different table, but im having trouble doing so. i have: if x...
4
by: Scott12345 | last post by:
Hi, here is my situation, I have a DB that tracks machine downtime (30 machines) per day. Several users will update this through the day. I created an append query that creates 30 dummy values and...
4
by: franc sutherland | last post by:
Hello, I am using Access 2003. I am having trouble trapping the "can't append all the records in the append query" error message when appending data to a query from a table which is linked to...
3
by: kent christensen | last post by:
So i have an append query that takes a bunch of data from different tables in the db and generates a quote in a new table called "Quote". In this Quote table there are many columns...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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...
0
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...

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.