473,320 Members | 1,707 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.

where am I going wrong

My competitors table has Memberid, lastname, first name, and I have three
other fields (all number) year month and another for day. I decided to
combine the year, month and day into one date field.

so I created a new field with a date/time format
then I created an update query and put date as my field name
and then I tried in the update section
=dateserial:([year]&{month}&[day})

and I could not get my date field to update.

I am new at this and wondered what syntax should I have used.

or is this the right way to do this.I did an internet search but couldn't
find anything useful

thanks


Nov 12 '05 #1
4 1644
On Mon, 03 May 2004 02:58:56 GMT, "Anne" <am******@ns.sympatico.ca>
wrote:

Why are you using { and }?
I don't think that's supported syntax.
Try [ and ] instead.

-Tom.
My competitors table has Memberid, lastname, first name, and I have three
other fields (all number) year month and another for day. I decided to
combine the year, month and day into one date field.

so I created a new field with a date/time format
then I created an update query and put date as my field name
and then I tried in the update section
=dateserial:([year]&{month}&[day})

and I could not get my date field to update.

I am new at this and wondered what syntax should I have used.

or is this the right way to do this.I did an internet search but couldn't
find anything useful

thanks



Nov 12 '05 #2
Joy
try this:
[year]&[month]&[day]

omit the brackets.

"Anne" <am******@ns.sympatico.ca> wrote in message news:<Qz*********************@ursa-nb00s0.nbnet.nb.ca>...
My competitors table has Memberid, lastname, first name, and I have three
other fields (all number) year month and another for day. I decided to
combine the year, month and day into one date field.

so I created a new field with a date/time format
then I created an update query and put date as my field name
and then I tried in the update section
=dateserial:([year]&{month}&[day})

and I could not get my date field to update.

I am new at this and wondered what syntax should I have used.

or is this the right way to do this.I did an internet search but couldn't
find anything useful

thanks

Nov 12 '05 #3
I removed the brackets and used
=dateserial:[year]&[month]&[day]
but is still doesn't work so any other suggestions.
The three fields I am combining are general number and I am combining into a
date/time field so could this cause the problem. Also not all the records
have data in year, month, day.

Any help is appreciated. I made the mistake of creating the table this way
and would have been so much better off with a date/time field in order to
manipulate the dates in the database. I want to update about 1000 records so
it would be so much easier to do so by an update.

"Anne" <am******@ns.sympatico.ca> wrote in message
news:Qz*********************@ursa-nb00s0.nbnet.nb.ca...
My competitors table has Memberid, lastname, first name, and I have three
other fields (all number) year month and another for day. I decided to
combine the year, month and day into one date field.

so I created a new field with a date/time format
then I created an update query and put date as my field name
and then I tried in the update section
=dateserial:([year]&{month}&[day})

and I could not get my date field to update.

I am new at this and wondered what syntax should I have used.

or is this the right way to do this.I did an internet search but couldn't
find anything useful

thanks


Nov 12 '05 #4
Anne wrote:
My competitors table has Memberid, lastname, first name, and I have three
other fields (all number) year month and another for day. I decided to
combine the year, month and day into one date field.

so I created a new field with a date/time format
then I created an update query and put date as my field name
and then I tried in the update section
=dateserial:([year]&{month}&[day})

and I could not get my date field to update.

I am new at this and wondered what syntax should I have used.

or is this the right way to do this.I did an internet search but couldn't
find anything useful

thanks

MyDate = dateserial(2004,5,3)
returns 5/3/2004. You need to use commas instead of ampersands. IOW,
DateSerial uses 3 arguments

Nov 12 '05 #5

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

Similar topics

36
by: Jack Hughes | last post by:
This argument has come up two or three times lately. We have a web standards document at our company that say "Use valid HTML 4; We don't recommend switching to DIV-based CSS-P for layout just...
8
by: John Welch | last post by:
I have a command button with the following code: DoCmd.OpenForm "frmSearchAssignments", , , "SearchAssignmentID = 1" (SearchAssignmentID is the PK, auto number) When it runs, the form opens but...
4
by: nospam | last post by:
HtmlSelect has a method called OnServerChange that supposed to detect whether the control (select) has changed on a postback. This is not all that useful. It should be like the asp.net...
3
by: Sukh | last post by:
I have to design a "Online Test Application" and application is going to display question and answers.All the questons are objective type so there is four answer for each question. My Question is...
15
by: E-Dot | last post by:
I am trying to write a program which asks the user to enter a number in the interval , the program then gives the natural logarithm of that number, using the series for log(x+1)... Here is what...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
2
by: jonathan184 | last post by:
Hi basically what i want this script to do is In a particular dir there are alot of files from today back to 1999 or earlier. So I am trying to have the script search this dir and sort the files...
25
by: sidd | last post by:
In the following code: int i = 5; ---it goes to .data segment int j; ---it goes to bss segment int main() { int c; int i = 5; ---stack
68
by: DaveJ | last post by:
Recently I was working on a project where I came across an issue where the program cored and reported "free(): invalid pointer". I found a resolution for this, but don't fully understand why the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: 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
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.