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

How do I copy every third or fourth record to a status table?

I have a submission form with data in it that is submitted into
"tblSubmitter" with basic information.

I need to take every third record and mark a "status" to it. For
Example: (these are unique ID's in the table, SUBMITERID)

1
2
3
4
5
6
7
8
9

I need to assign 2, 3, 4 to record 1 as "Gifters" and record 5 as a
"Receiver" to record 1.

i need to assign 6, 7, 8, to record 2 as "Gifters" and record 9 as a
"Receiver" to record 2.

and so on in the DB. These are being submitted on a first in first
out basis. The DB may have to "wait" until it gets all 3 Receivers
and 1 Gifter before it continues with it's calculations. This is
based on an insert record behavior on the form.

Here is a link to the participation form:

http://thebiblicalseven.com/application_form.php

THEN I need to send an email letter with variables from the form
(i.e., email address, contact information) to each Receiver and their
3 Gifters called a Friends List.

I am a beginner with PHP so any coding help would be awesome..I can
create these tables to update with the SUBMITER ID as the PK but
haven't created any tables as of yet until I figure out what direction
to go. I would like to keep it relational if possible.

I also need to make sure the same givers and receivers are not
assigned if they enter another email address. I know this is
confusing but I would be happy to explain if someone out there had a
clue how to code this!

I was going to use PHP and MySQL but I think I will just link to the
MySQL tables and try this with an update query or function. i do not
know VB very well so any coding help would be awesome!
Thanks!

You guys on here are great. I have learned a lot so far..
Jan 7 '08 #1
1 1723
Chis, I think you may need to learn how to OpenRecordset, and walk the
records. Use Edit and then Update. You can use your own counter, and use Mod
3 (or Mod 4) to calculate when to change.

Here's a basic introduction to walking a recordset:
http://allenbrowne.com/func-DAO.html...cordsetExample

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"chrisdavis" <pi*************@gmail.comwrote in message
news:36**********************************@e23g2000 prf.googlegroups.com...
>I have a submission form with data in it that is submitted into
"tblSubmitter" with basic information.

I need to take every third record and mark a "status" to it. For
Example: (these are unique ID's in the table, SUBMITERID)

1
2
3
4
5
6
7
8
9

I need to assign 2, 3, 4 to record 1 as "Gifters" and record 5 as a
"Receiver" to record 1.

i need to assign 6, 7, 8, to record 2 as "Gifters" and record 9 as a
"Receiver" to record 2.

and so on in the DB. These are being submitted on a first in first
out basis. The DB may have to "wait" until it gets all 3 Receivers
and 1 Gifter before it continues with it's calculations. This is
based on an insert record behavior on the form.

Here is a link to the participation form:

http://thebiblicalseven.com/application_form.php

THEN I need to send an email letter with variables from the form
(i.e., email address, contact information) to each Receiver and their
3 Gifters called a Friends List.

I am a beginner with PHP so any coding help would be awesome..I can
create these tables to update with the SUBMITER ID as the PK but
haven't created any tables as of yet until I figure out what direction
to go. I would like to keep it relational if possible.

I also need to make sure the same givers and receivers are not
assigned if they enter another email address. I know this is
confusing but I would be happy to explain if someone out there had a
clue how to code this!

I was going to use PHP and MySQL but I think I will just link to the
MySQL tables and try this with an update query or function. i do not
know VB very well so any coding help would be awesome!
Thanks!

You guys on here are great. I have learned a lot so far..
Jan 7 '08 #2

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

Similar topics

6
by: dev | last post by:
how create a temp table as a copy of a existing table and then update1 field and insert the hole temp table back in the existing table? please any help? if i have 10 fields in 1 record and...
1
by: Alexandre Jaquet | last post by:
Hi, I would like to copy and paste a selected item on a web page I already 've a context menu when the user rigth click on an item. I would like to draw a rectangle who carry about current...
19
by: davidgordon | last post by:
Hi, I need some pointers/help on how to do the following if it possible: In my access db, I have the following: Tables: Products, Sub-Assembly, Product-Pack Table, Products
1
by: Bastian Blank | last post by:
I'm using postgresql 7.4.2 and COPY FROM don't trigger INSERT rules. Definitions: | CREATE TABLE log.package_status ( | version integer NOT NULL, | architecture integer NOT NULL, | ...
4
by: AA Arens | last post by:
I amde a helpdesk database and on the calls form I put record navigation buttons / / / / / / Is het possible to navigate / through the records with a certain status. Each call has a...
1
by: ILCSP | last post by:
Hello, I'm trying to accomplish 3 things with one stored procedure. I'm trying to search for a record in table X, use the outcome of that search to insert another record in table Y and then exec...
2
by: Swinky | last post by:
I hope someone can help...I feel like I'm walking in the dark without a flashlight (I'm NOT a programmer but have been called to task to do some work in Access that is above my head). I have...
1
by: javediq143 | last post by:
Hi All, This is my first post in this forum. I'm developing a CMS for my latest website. This CMS is also in PhP & MySQL. I'm done with the ADD section where the Admin can INSERT new records in...
1
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: 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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.