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

Create Popup Reminder

106 100+
Hi,
I have a popup reminder to list all vehicles due for service within the next two weeks.

To calculate the next service date, I am using (SQL)MAX of MaintCompDate and the following fields:
MaintenaceDate (date maintenance Started)
MaintCompDate (date maintenance Completed)
MaintenanceCompletedYN
ServiceRemindYN

Once I put the vehicle into service, it is not dropping out of the reminder list becuase MaintCompDate is null and SQL is picking up the last MainCompDate.

How can I work my way round this Please.

Regards
Jun 7 '10 #1

✓ answered by gnawoncents

It sounds like you want to use the MaintenanceDate as your criteria for generating the popup as opposed to the MaintCompDate.

Please provide more detail and a sample of your code and I can be more specific. Thanks.

5 3665
gnawoncents
214 100+
It sounds like you want to use the MaintenanceDate as your criteria for generating the popup as opposed to the MaintCompDate.

Please provide more detail and a sample of your code and I can be more specific. Thanks.
Jun 9 '10 #2
tasawer
106 100+
@gnawoncents
Thanks for your suggestion.
I have got it resolved working on the assumption that vehicle is constantly hired.
What I did was to look at the max MaintenanceDate
Then look at it again where Maintenace is completed
and compared the two.
if they match, vehicle is out on the road and needs service, if they don't then vehicle is being serviced.

of course, this will not work for the vehicle that is serviced and left on the forcourt waiting to be hired.

I suppose, i'll have to add another date field, (HIREDATE) and use this as the alternative?

what do you suggest?
Jun 9 '10 #3
NeoPa
32,556 Expert Mod 16PB
gnawoncents: Please provide more detail and a sample of your code and I can be more specific. Thanks.
I think you already have a suggestion that you have not responded to yet. It would also be my suggestion, so let's repeat it here and see where we can get to :

Please provide more detail as to the logic you are intending to implement.

So far, we only know that you have 4 fields and you seem to want to do a Max() of those fields (which doesn't make much sense as 2 of them are boolean values).

If you can provide the whole question clearly, I'm sure either of us would be happy to help you.
Jun 10 '10 #4
tasawer
106 100+
Hi, Sorry for the delay in replying. I was working on other areas of the program.

By using MaintenaceDate, as suggested by gnawoncents, I have managed to create the popup as required.

Thanks for your help.

Regards
Jun 13 '10 #5
gnawoncents
214 100+
Glad to hear it's working for you.
Jun 13 '10 #6

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

Similar topics

38
by: Shaun McKinnon | last post by:
HI...Here's my problem...I have a popup window that loads when i want it to, but it's not sized properly. I've set the size, but it doesn't seem to work. I've been on 8 different websites to find...
5
by: robertaraj | last post by:
Hi All, I am new to vb.net, Can anybody tell how to create a pop up window at runtime. If I have more than 100 product names in the database, While I click the letter 'A' in text box, the...
3
by: SamsonJohn | last post by:
HI ALL HOW CAN I CREATE POPUP APPEARS WITH TAIL POINTING TO PARENT WINDOW You can go through google calender When you click On theEvent a popup box APPEARS WITH TAIL POINTING TO PARENT WINDOW ...
2
by: software student | last post by:
i want to create pop up window in my windows forms through code.im using c#. is there any code for it??
12
by: ali3n8 | last post by:
Hello I am pretty new to building Access databases. I am in the process of creating a database for a customer of mine. Would anyone be able to assist me in creating a popup reminder that will appear...
0
by: newwin | last post by:
How i create a popup menu on switchboard form, like on switchboard form, when user clicks the button a popup menu is displayed then user can selects one of them using access 2007. Please tell me, the...
2
by: davidson1 | last post by:
Hello Everybody, Actually in my project there is an Announcement Module... in ASP.NET written in vb languge Whenever any announcement enrolled in database , the popup window...
2
by: THEAF | last post by:
hi, I'm trying to create a reminder. i have 2 forms one for to set the reminder and one to view all the reminders. these reminders are recorded on access. i can save the reminder and the other form...
2
by: Taftheman | last post by:
Hi, I have created a pop up using js and returns a value for me to process. I have got it working. I now need to do it again for another button. The value return will be processed differently. But as...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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: 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...
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
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...

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.