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

Access Help Pls (various)

Hi Guys,

Any help offered on the below 2 queries (mind the pun) is gratefully received.

1) I'm constucting a db of betting results data. Each bet as a whole is called a "position" and every position has an underlying component. so Comps and Positions have a many-to-1 relationship respectively. This is because certain bets are parlays/multiples which means they can be made up of say 3 individual bets which are the components but the entire parlay is a position, so my table "Components" has a p.k CompID and also a PosID so parlay bets all share a common PosID. E.g CompID 4,5 & 6 all belong to PosID 3. If a

Since a position is simply a derivative of a component, I am then wanting to use a Group-By PosID append query to append new records to tbl Positions as and when I add new components.

When I manually enter a new record in my components table at the moment I am having to sort ascending by POSID to ensure I enter the next PosID number in sequence. This manually assigning of PosID is obviously not ideal especially since I want tbl Comp and tbl Pos joined by PosID with ref. integrity and it would be prone to data-entry error.

Can I get Access to automatically assign a new group of components the next PosID in the append qry since in tbl Positions POSID needs to behave like primary key and will always be unique but in tbl components POSId will obviously NOT be unique. I guess I would have to add new components through a form which divides components into groups - could allow to add 3 groups at a time or something.

2) I am trying to run a separate query to count winning and losing sequences using my field "Result". How do I get access to assign a new sequence number every time there is a change in the result field. N.b this is not a count of the number of like results within the sequence, just a count of the number of sequences so it will look like this.....

BetID Result Sequence

1 Won 1
2 Won 1
3 Lost 2
4 Lost 2
5 Lost 2
6 Won 3
7 Lost 4
8 Won 5
9 Won 5
10 Won 5



THANKS!
Jun 13 '07 #1
1 1332
NeoPa
32,556 Expert Mod 16PB
For your first question you should be looking at forms and sub-forms I suspect.
Otherwise you would have to do it with code.
For the second, you will need to use code.
Jun 13 '07 #2

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

Similar topics

11
by: Rosco | last post by:
Does anyone have a good URL or info whre Oracle and Access are compared to one another in performance, security, cost etc. Before you jump on me I know Oracle is a Cadillac compared to Access the...
1
by: bespectacledpoet | last post by:
I am doing a study on access 2003 for a database class. I am trying to determine what SQL access uses, such as relational algebra, tuple calculus, domain calculus, etc. Can anyone point me in the...
4
by: Pecanfan | last post by:
I've got quite a large database which is totally form-driven at the moment. I now need to allow multiple users access to various parts of it and, frankly, I'm not prepared waste my time with...
6
by: Bob Alston | last post by:
I am looking for Access reporting add-in that would be easy to use by end users. My key focus is on selection criteria. I am very happy with the Access report writer capabilities. As far as...
38
by: Oldie | last post by:
I have built an MS Access Application under MS Office XP (but I also own MS Office 2000). I have split the application in the pure database tables and all the queries, forms, reports and macro's. ...
6
by: jfbevilaqua | last post by:
Does anyone know of a utility or a method (VBA or otherwise) to be able to export ALL 100+ MS Access Queries from an Access Table into individual text files perhaps ending with .sql so they can be...
2
by: rdemyan via AccessMonster.com | last post by:
I have a custom message form that I want to display when the user shuts down my app. Some clean up needs to be done during shutdown and I want to display this form and then display various...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
0
by: Bill E. | last post by:
I will be creating an application using MS Access as a client to SQL Server 2005. Each user will have the client installed on his/her machine. Some users will be attached to the local network...
16
by: Phil Stanton | last post by:
I have a form with a button which is supposed to open an Excel file (With lots of Macros /VBA) in it. The Excel file gets it's data from the Access program Here is the code Private Sub...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
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,...

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.