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

COPY field values?? Need Ideas!

I have an issue and I am not sure what the best resolution would be.
Currently I have an .asp page that looks for a record in an Access
table (tbl_WJS_Input) where the week ending date is mm/dd/yyyy and
JobNumber is 12345. If the 12345 job number doesn't exist with that
particular week ending date the record is created. The page then
displays the form fields to allow the user to update the fields in the
table.

Fields in the table are as follows:

jobNumber - integer
weekEndingDate - date
currentHoursA - text
currentHoursB - text
reportRequired1 - yes/no
reportRequired1b - yes/no
reportSubmitted1 - yes/no
reportSubmitted1b - yes/no
This week ending date changes every Friday. Currently, if a user
brings up the .asp page the week ending date is 4/5/2007, tomorrow
(Friday) the week ending date will change to 4/12/2007. So, tomorrow
when the user brings up the .asp page it will want to create the new
record with the 4/12/2007 weekending date. I need to grab the yes/no
settings of the week ending 4/5/2007 recordset. I am not sure how to
go about doing that?

Thanks

Apr 12 '07 #1
1 1486
Maximus wrote:
I have an issue and I am not sure what the best resolution would be.
Currently I have an .asp page that looks for a record in an Access
table (tbl_WJS_Input) where the week ending date is mm/dd/yyyy and
JobNumber is 12345. If the 12345 job number doesn't exist with that
particular week ending date the record is created. The page then
displays the form fields to allow the user to update the fields in the
table.

Fields in the table are as follows:

jobNumber - integer
weekEndingDate - date
currentHoursA - text
currentHoursB - text
reportRequired1 - yes/no
reportRequired1b - yes/no
reportSubmitted1 - yes/no
reportSubmitted1b - yes/no
This week ending date changes every Friday. Currently, if a user
brings up the .asp page the week ending date is 4/5/2007, tomorrow
(Friday) the week ending date will change to 4/12/2007. So, tomorrow
when the user brings up the .asp page it will want to create the new
record with the 4/12/2007 weekending date. I need to grab the yes/no
settings of the week ending 4/5/2007 recordset. I am not sure how to
go about doing that?
Insert into tbl_WJS_Input
select * from tbl_WJS_Input
where weekEndingDate = #2007-04-05#
and jobNumber=12345
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Apr 12 '07 #2

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

Similar topics

7
by: Rick Caborn | last post by:
Does anyone know of a way to execute sql code from a dynamically built text field? Before beginning, let me state that I know this db architecture is built solely for frustration and I hope to...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
1
by: Sean Howard | last post by:
Dear All, As is my want I need to do something in Access that seems simple but cannot fathom out. I have main form with two subforms, both datasheets with an almost identical table structure....
6
by: HD | last post by:
Hello. For the following, I would appreciate if anyone could tell me: if it can be done, how it might done, and/or what search terms I could use to find the solution myself. I would like to...
3
by: david | last post by:
Hi, I've been reading tons of posts on how to copy records, but to no avail....i'm still stuck. There are three tables: Main, Sub-Form1 & Sub-Form2 I have a form which displays some data....
7
by: simkn | last post by:
Hello, I'm writing a function that updates an array. That is, given an array, change each element. The trick is this: I can't change any elements until I've processed the entire array. For...
5
by: lion | last post by:
in .net, if you set annstance-A of a class equal to another instance-B, a pointer will add to B, but if i want to create a copy of B instead of pointer, how to operate? Note:serialization...
0
by: igendreau | last post by:
I have a database with a Header table. Each record in tblHeader has two One-to-Many Relationships: with tblLines and tblKeys. The HeaderID field ties tblHeader to the other two tables. The data...
1
by: Adrienne Boswell | last post by:
I have a form which I am letting the user enter more than one event at a time. I need to check whether one date is less than another. If the display to date is earlier than the event date, then...
3
by: Richnep | last post by:
Hi all, I have tabbed subforms where I need to copy one field value from one subform over to another subform. Although I can run an update query to accomplish this I would like to do it through...
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...
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
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...

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.