473,320 Members | 2,012 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.

Date Manipulation in a Scheduler for Access

OK, here's the quirk I have.

I'm building a scheduler for a Fire Truck Manufacturing company. They have like 8 date fields per truck to be built. If they have to squeeze in a truck between dates, they were wondering if they could have the dates of all the trucks post squeeze automatically be updated or not.

Say like they know that a rush truck job is going to put every other project behind by 6 days, I was going to have them go into a quick form, choose the truck ticket number, start/squeeze date, number of days delayed and a button that would run some VB code that would choose all date fields and truck numbers after the start/squeeze date and move them up by 6 days.

Any hints on where to start?
Sep 17 '07 #1
1 1226
Scott Price
1,384 Expert 1GB
OK, here's the quirk I have.

I'm building a scheduler for a Fire Truck Manufacturing company. They have like 8 date fields per truck to be built. If they have to squeeze in a truck between dates, they were wondering if they could have the dates of all the trucks post squeeze automatically be updated or not.

Say like they know that a rush truck job is going to put every other project behind by 6 days, I was going to have them go into a quick form, choose the truck ticket number, start/squeeze date, number of days delayed and a button that would run some VB code that would choose all date fields and truck numbers after the start/squeeze date and move them up by 6 days.

Any hints on where to start?
Start with working on a backup copy of the working database :-)

What kind of table structure do you have? Is this in a Truck table?

You might be able to do this all in an Update query. That's probably where I'd start, anyway. Do up a nice stable SELECT query that pulls every date field for every truck that will be affected by the squeeze date. This will help you refine your selection criteria.

The standard syntax for an update query is as follows:
Expand|Select|Wrap|Line Numbers
  1. UPDATE [TableName] SET [ColumnName] = [Value], [ColumnName2] = [Value]
  2. (WHERE [UpdateCriteria]
Run this in vb code under your command button, etc.

This is a general overview, ask any questions you like for more specifics.

Regards,
Scott
Sep 17 '07 #2

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

Similar topics

2
by: Daniel Fisher | last post by:
Hi All! I'm fairly new to PhP and basicly trying to learn right now. Now I have a problem - I have a fairly large collection of movies which people keep borrowing from me. And then not returning....
16
by: jason | last post by:
I'm tearing out my hair here: ACCESS 2000: When I attempt to overwrite a date in my date field with a new user selected valid date eg: 05/23/99 my date field changes to the TIME I updated the...
7
by: What-a-Tool | last post by:
How does the expire date work setting it server side with asp. I know with javascript setting it client side it will be set to the clients local time, and therefore expire when the clients local...
1
by: Mike Thomas | last post by:
I want to start this thread again - on my first attempt I was a little ambiguous and was not able to get the answer I need. I am trying to start Access 2000 on Windows NT 2000 Server by using the...
5
by: WindAndWaves | last post by:
Hi Gurus This is a cry for help to all of you. I am looking for some sort of plug-in/active X/code/link to outlook/what have you, which I can add to my MS Access database for my users to...
2
by: Pat_RI | last post by:
I am trying to call a macro using a command file by using Windows Scheduler. I am able to run the command file and the macro runs without issue if I doubleclick on the *.cmd file. When I try...
6
by: Luvin lunch | last post by:
Hi, I'm new to access and am very wary of dates as I have limited experience in their manipulation and I know if they're not done properly things can turn ugly quickly. I would like to use a...
1
by: =?Utf-8?B?QW5keSBTLg==?= | last post by:
I have an application written in Visual Basic .NET in Visual Studio 2005 that runs on a server and simply uses the filesystem.copydirectory to backup folders from my pc to a server. The problem I...
7
by: codyto | last post by:
This seems to have been done a lot. I am a novice with Access so please don't feel bad talking to me like a 2 year old. I am trying to make a scheduler that would allow me to pick a day on a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.