hi every body
i need a logic , that
for a particular code i need to genrate a serial number for a day should be one
for the next day it should be increment to 2 like this
can any one help me in this
Please..,
its urgent
thanks a lot
8 1469
Try to use system date with a incrementing number .
Thanks for your reply
I am comparing previous day with the current date
for ex
If Format(Date, "mm/dd/yyyy") > rs.Fields(1) Then
rs.fields(1 ) is previous date from access
the problem is my system date format is dd/mm/yyyy - access format is mm/dd/yyyy
so some times it give me a wrong answer
QVeen72 1,445
Recognized Expert Top Contributor
Hi,
Just use Julian Date Format:
CLng(Date)
Every day it is Incremented by 1
REgards
Veena
i tried as you said
the value differ due to the format
from access
rs.fields(0) = 04/02/2008 -> mm/dd/yyyy
clng(rs.fields( 0)) -> value - 39482
System date - dd/mm/yyyy
Date value for 02/04/2008 clng(date) - 39540
how to handle this date format to find the value
QVeen72 1,445
Recognized Expert Top Contributor
Hi,
Try this :
If Date > Format(rs.Field s(1), "dd-mm-yyyy") Then
Regards
Veena
iam trying change the date from access to this
Format(rs.Field s(1), "dd-mm-yyyy")
04-03-2008
but its not changing i dont know why?
QVeen72 1,445
Recognized Expert Top Contributor
Hi,
What is the "Format" of that Date Field...?
Have you mentioned any specific format..?
Why dont you drop the Field and Re-create it..?
What is the Regional date setting..?
If regional date setting is mm-dd-yyyy, then it may not allow you to change to dd-mm-yyyy
REgards
Veena
i tried the format as you given but its not working
my regional setting is dd-mm-yyyy
but access date format mm-dd-yyyy
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: pilar |
last post by:
Hi All,
It is possible to restrict data entry for 2 fields at the same time?,
i know how this may sound for you, please don't insult me (just
kidding, this is a great newsgroup). In my first Access database I
just found a big design mistake. There is a table - tblsystem- with 2
fields -upperprinter and lowerprinter- this 2 fields contains the same
type of data, they store the printers serial numbers. Now I found
duplicate entries for the...
|
by: Lauren Wilson |
last post by:
Does anyone know how the following info is extracted from the user's
computer by a Front Page form?
HTTP User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.7.5) Gecko/20041107 Firefox/1.0
I only ask because I believe I could use the same info as part of a
scheme to generate a unique (or at least less common) serialized id
code for the user's computer as part of a software locking and
activation system. If I had a DLL...
|
by: SalimShahzad |
last post by:
Dear Gurus,
i had written following codes to auto generate the next claim no
Private Const strC = "GCT/02/J/"
Private Sub Command1_Click()
Dim stra, stre As String
Dim intb, intd As Integer
Dim strd As String
stra = "200"
|
by: vicky |
last post by:
Hello,I met a question when I wrote the program.I want the program can
transmit the data frame continuosly through the RS232 when the
communication has been interrupted.But I don't know how to write. I
don't know how to record.Who can give me hand?Thanks very much!
|
by: Paul |
last post by:
Hi,
I have spent the last couple of days researching this issue. And I have
also spent time thinking about what is needed.
I am distributing my software as shareware. When a customer orders a
license, I send him/her a printed license with a license number that
can be used to unlock certain features in the software.
A license number should consist of up to 20 numbers and letters.
Upper/lower case letters should not matter and in order...
| |
by: Alan Mailer |
last post by:
A project I'm working on is going to use VB6 as a front end. The back
end is going to be pre-existing MS Access 2002 database tables which
already have records in them *but do not have any AutoNumber* fields
in them.
Correct me if I'm wrong, but I'm assuming this means that I cannot now
alter these existing Access tables and change their primary key to an
"AutoNumber" type.
If I'm right about this, I need some suggestions as to the...
|
by: mike |
last post by:
I help manage a large web site, one that has over
600 html pages... It's a reference site for ham radio
folks and as an example, one page indexes over
1.8 gb of on-line PDF documents.
The site is structured as an upside-down tree, and
(if I remember correctly) never more than 4 levels.
The site basically grew (like the creeping black blob) ...
all the pages were created in Notepad over the last
|
by: Antonio |
last post by:
Hi,
I would like to have my users register their name and organization name and
submit them through email so that we can generate a product key for them.
But we have no idea how to generate a product key something look like
Microsoft's product key. In addition, I would like to have the key generated
based on their name and company name.
Any idea on how to go about doing this using VB.NET? Thanks in advance.
|
by: cmrhema |
last post by:
A big hello to everyone
I have dropped on a gridview on asp.net coding done is C# 2005.
Here I display the records when a certain condition satisfies.
eg. I want to display the details of all employess who has been employeed between a certain period.
I place the query and do get the results.
eg. there are five records
101 aaa ddd eee
102 bbb ccc ddd
.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |