Odd- Year() Stuck In 2000 And 1900

Sep 6, 2005

I have data that looks like this: 3-KJ56, 1-85L6. I am importing data from excel. (This was exporting from another inhouse database program into tabdelimited, into excel, ect)

There are times that I get data that is mistaken for a date:

1-5600 (jan-5600) This is how it is in Excel, before I load it up into access. I use an update Query to correct this mistake

Month([Datafield])& "-" & Year([Datafield])

BUT.....
When Access sees years like "5600" it comes back as "2000" or "8956" comes back as "1956".

When I use the year() statement in Excel, it comes back with the correct year- but not access.

Is there a statement that will force Access to see the entire 4 digit year?

Thanks in advance.

View Replies


ADVERTISEMENT

Convert Text (YYMM) To Numeric Retaining Lead Zero Or Zeros (Year 2000)

Aug 28, 2012

I have a DB containing over 4 million rows of data, each with a SALES_PERIOD based on YYMM. Our Developers set it up as Text, and index this item accordingly, I would like to format as numeric with the lead zero to allow quicker indexing, but when I format it it returns to text this is the formula I use?

Format((Val([SALES_PERIOD])), "0000")

View 5 Replies View Related

Dates Before 1900

Jan 23, 2007

Hi,
It is a long time since I seriously used Access and I am a bit rusty. I am trying to create a databse to genealogical information and need a date format that will handle anything from 2007 way back to the 1600's. I seem to remember that MS software uses a numerical system for assigning dates but works from 1900 onwards. I am sure there must be a "fix" for assigning pre 1900 dates but cannot find a reference.

Is there anyone out there who has experience of this kind of problem who would be kind enough to offer some advice please ?

Regards

John

View 5 Replies View Related

Queries :: Time Exports To Excel As 00/01/1900?

Jan 20, 2014

I am trying to export a table from access to excel. It has a couple of columns with times in and when excel opens it just shows 00/01/1900 for all the values.

Here is my query that creates the table for exporting:

Code:
SELECT tblRoadClosuresAdditionalDates.Reference, tblRoadClosuresAdditionalDates.DateOfClosure, CStr(Format([TimeFrom],"Medium Time")) AS TimeFromMod, TimeValue([TimeTo]) AS
TimeToMod, tblRoadClosuresAdditionalDates.NumberOfPeople INTO tmpAdditionDates
FROM tblRoadClosuresAdditionalDates
WHERE (((tblRoadClosuresAdditionalDates.Reference)=[Forms]![frmProgressRoadClosures]![sfrmRoadClosuresAdditionalDates].[Form]![Reference]));

You can see a couple of my attempts to handle this data above.

I am using this code to create my excel table.

Code:
DoCmd.OpenQuery "qryRCADditionalDatesFilteredExport"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8, "tmpAdditionDates", "xxxxxxxxxxxxxx", No

way to handle this field so that I get just the time in the medium time format appearing in the excel table.

View 4 Replies View Related

Access 2000 Security - Authenticate With Windows 2000 Server Credentials

Oct 24, 2005

Hi

I have a database that currently has security in place so that users input their own usernames and passwords to access the database. The users have recently been added to a windows 2000 server and I want to be able to use their windows 2000 server logon credentials to provide them with automatic access to the database. Is there anyone out there who knows how to set this up? It is a rather urgent request if you could get back to me either on this forum or via email

chris@ctbjs.co.uk

many thanks

Chris

View 1 Replies View Related

Opening & Closing Excel 2000 Workbooks From Access 2000

Jun 2, 2006

I am opening and closing a series of Excel 2000 Workbooks using Access 2000 VBA and want this sequence to be able to complete without any human intervention.

However, there are 2 instances when this stops and waits for a human option to be selected:

1. When the spreadsheet is password protected
2. When the spreadsheet has automatic links I get the message:

"The Workbook you opened contains automatic links to information in another workbook. Do you want to update this workbook with changes made to the other workbook?"

How can I code it so that in situation 1 it skips this file and in situation 2 it automatically defaults to do not update?

Any help most appreciated.

Dalien51

View 1 Replies View Related

Link/Transfer Data From Access 2000 To Excel 2000

Mar 27, 2006

If I have a report in MS Access 2000 generated based on the criteria selected of a project with work order "9999" with the labor costs, materials costs and the Totals of each crew1, crew2,... and I would like to have those expenditures populated in corresponding cel in Excel for each crew, HOW would I do it?

To think it out loud, could I create a button on a form, so when I select the criteria for the work order, and when I click the button, it should refresh/update the Exel file with the new data...?? How do I write VBA code for that...?

Please help...Thank you so much....

View 3 Replies View Related

HELP: Changing Dates To FY (fiscal Year) And YTD (year-to-date) Values

Apr 25, 2006

I have a huge table with transaction dates. I need to slice and dice
this data (sum, %'s, etc), but group by FY. Our fiscal year is from
7/1 thru 6/1.

For example:
1/8/2004 = FY 2004,
8/12/2004 = FY 2005,
2/3/2006 = FY 2006

THEN . . . . I need to also isolate certain periods, for example July-
March for YTD (year-to-date) analysis and compare YTD of 2006 with that
of 2005.

What do you suggest? Many thanks.

Mehran

View 7 Replies View Related

Access 2000 & MSSQL 2000 Multiuser Problems

Aug 20, 2007

Hi everybody,

I have recently been doing a conversion for my boss for a access 2000 database (both front and backend) to a MSSQL backend.

I finished the conversion today (as quite a lot of the code / queries ran slow due to access running the queries locally rather than on the server). And tested it on my and my boss's machine with no problems so he gave the go ahead to update everybody to our new mssql 2000 backend with the modified frontend.

This is when the problems started; We had two different sets of forms for accessing one of our databases systems - the log system, one is the original dynaset based form, and the other is a newer set which uses snapshot views and preforms updates via queries. Nobody uses the old dyanset system apart from my boss and one of the administrative team as they have things on that window which they need to see. About 30 minutes into the release of the new database the system frooze up on my bosses computer and nobody could create a new log (the server was timing out). I assumed this had something to do with the old dynaset's creating locks on the table.

I offlined the database and kicked everybody out of the front end, turned it on again and tied again, this time banning everybody from the dynaset system. Within 10 minutes another computer frooze up, again with a timeout on the insert query. I discovered that after you had added a new log to the database it would timeout on all subquent additions (something it hadn't done during testing) . Further investigatiion showed it was the snapshot list window causing the error, so coded the add log window to close the list before preforming the insert query and then reopen it afterwards. This allowed my machine to make multible additions without flaw. So I released a new client to everybody. 15 minutes later it was timing out again, but this time there you could not even make one new record.

I checked for locks on the table though the server management table and couldn't find any for the Log table. I have restarted the SQL server box and with no avil. So I reverted our backend to the access mdb file and told people to use the old client.

I am at a complete lose to why this is happening, if anybody has had any expericences like this or knows the cause please tell me.

Some information on the database in question.

It was made as an access 2 database all intergrated into one file, then it was seperated into two files (frontend and backend). Upgraded to Access 97, then to 2000 before this final update to MSSQL 2000.

The log system has two main tables. The first is the log title / info table which links (one to many) to a log entry table. This problem only occurs on the main log table and does not appear to be reoccurring anywhere else within the database. The main log table has just under 18,000 rows in it.

Thank you in advance for any help,

Dom

View 10 Replies View Related

Sum Of Current Year Minus The Year Of A Date In Past?

Apr 25, 2014

I'm trying to add a couple of fields to the Contact database in Access 2010.

In the Contacts table, I created a field called "Sobriety Date" that has dates formatted like 12/27/1995

I am trying to add a calculated field called "Years Sober" which should be the current year minus the year in the 'Sobriety Date' field (1995 in the example above).

I have been trying to tweak this:

SUM(DatePart("yyyy",[Date]) - DatePart("yyyy",[Sobriety Date]))

but it's not working. Keeps giving me "The expression that you entered is not valid for web-compatible calculated columns"

View 2 Replies View Related

Replication Between SQL Server 2000 And MS Access 2000.

Nov 15, 2006

Is it possible to have the master datebase in SQL Server, the replica in Access format and still can sychronize them?

Thank you in advance.

View 3 Replies View Related

Percentage Of Year Employed - Prior Year

Aug 1, 2005

I trying to figure out how to make this query work. I have a simple database that is being used to show employee employment information - name, hire date, salary, bonuses, etc. Everything is just about done but they want me to show what percentage of the prior year the employee was there. In other words if an employee was hired 4/20/2004 they want me to show the percentage of 2004 they were employed with the company. I've tried just about everything I can think of but nothing seems to give me the right answer. I am also showing the percentage for the current year (2005) and that works ok. Just can't figure out how the calculate it for a prior year.

This is being done in a query and we're using Access 2000.

Any help would be greatly appreciated.

Thanks,

View 6 Replies View Related

Queries :: Determine Date Given Day Of Year And Year

Jul 3, 2014

I have fields [DayOfYear] and [Year] can I somehow produce the dd/mm/yyyy from this. I know how to do it in Excel but the Asscess function Date() is a little different.

I.e. if [DayOfYear] =152, [Year] = 2014 then [Date] = 2/6/2014

View 6 Replies View Related

Year And Date - Show Day Of Year As Three Numbers

Jan 10, 2012

I'm going to try using the year, day of year, hour & minute (24 hour clock) as a report number. It's set up in a field on a table. Right now I have....

Default Value =Format(Now(),"yyyhhnn") 'which works but not exactly how I would like

yy = Last two digits of the year
y = Number of the day of the year (1 to 366) 'can this show three digits all the time?
hh = Hour in two digits (00 to 23)
nn = Minute in two digits (00 to 59)

For instance, right now for Jan. 10th, 2012, 1306 hours the result would be 12101304 which, for all intents and purposes works, but I would prefer the "day of the year" to always be represented by three digits and not just when it hits day 100 of the year.

I would prefer to see 120101304

View 4 Replies View Related

Add 1 Year To Year Part Of Date

Mar 14, 2006

I have a query based on payment date which I have extracted the Year part as a seperate Field StartYear, but I want to now add EndYear which just adds 1 year to the StartDate. e.g. EndYear = StartYear +1. Anyone kow please I know i's proably simple but I keep getting syntax errors.

View 3 Replies View Related

Really Stuck

Aug 6, 2006

i have been trying to for the last several weeks create a database which holds information about companys e.g addresses etc on it. It also has a subform on it which runs a query and shows me the courses they run with a button beside it. This subform propertys is set to continues and so there is a button that appears beside each course. How can i get it so when i click on the botton beside that particualr course it will load up another form and display some more information holding the times and dates of this course.

View 11 Replies View Related

Stuck In This

Jun 15, 2007

I've been designing a db and entering data in the process. Now I'm almost done with this project and other people are interested in this db. Is there a way to empty all table records? Is there a command to have a blank db?
My db has almost 5,000 records :S and each record has another table with 5 linked records
so there are like 25,000 records to delete. I know there is a way and its to create another table with the same fields and importing the rest of the objects... but I want to make there is no other way.

Another Q is how to add security to my db how to "attach" the db to a hardware of a computer so if the db is installed on another computer it asks for a serial number...I have asked this before but no one had answer me this.
Thanks in advanced

View 7 Replies View Related

Stuck - Help Please

Jan 8, 2008

Hi

I want to use MS access to build a diary / appointment system, and a table for storing contact details.

I am struggling with the appointment system. I was going to try a table with the date and diffefent app times as fields. then put it into a form so that it looked like a diary page and i could just add names to the times., this would have ollowed be to scroll backwards and forwards through the dates with ease (as each day would be a new record)

The problem i have found is that this makes running quires on individuals difficult,i would like to see for example how many appointments a person has missed, the dates of there next appointments if they have pre booked ect.

any suggestions as how i should go about this?

View 6 Replies View Related

I'm Stuck And Need HELP!!

Apr 28, 2006

I'm trying to update a table based on a field in an unbound form

Here’s the code:
Private Sub Command38_Click()
Dim strPartNo As String
strPartNo = Me!fldPartNumber
Set dbs = CurrentDb()
Set rstBalUD = dbs.OpenRecordset("SELECT * from PartsInventory WHERE CO_PART_NO = [fldPartNumber]", 1)
rsBalud!SERVBAL = Me!fldNewServBal
rstBalUD.UPDATE

End Sub



Here’s the error:
Run-time error ‘3011’
The Mircosoft jet database engine could not find the object ‘SELECT *
from Partsinventory WHERE CO_PART_NO = [fldPartNumber]’.
Make sure the object exists and that you spell its name and path name
correctly.
Reply With Quote

View 2 Replies View Related

Very Stuck

Oct 7, 2007

I have a table that has the follwoing fields:

-student name
-pesent percentage
-compare value 1 (a number)
-compare value 2(a number)

now i want a query to display the following fields as an output

-Student name
-Compare value
-present percentage 1
-present percentage 2

so where "compare values" 1 and 2 are equal it will display 1 record in the query that will show both the values. in respective fields.

View 4 Replies View Related

New And Stuck

Mar 4, 2005

I have a form which includes two fields (amonst others) Town and STDCodes.
What I want to do is enter the Town from a drop down list and the STDCode is automaticly inserted in the STDCode field, the towns are all local about 20 in total. How can I do this please in simple easy steps.

Malcolm

View 2 Replies View Related

I Got Stuck

Mar 12, 2005

Hi all.

I'm creating a database for a work experience database for a school where each pupil has to be assigned to a company. The problem is that on the form "Final form" where it says Work ID I want it so that each pupil is assigned to that company and then I can create a reports.

For example I choose work ID 2 for one of the pupils and when I create a report it'll have the information of the student profiles with the companies they're supposed to go to.

Can anyone give me a hint or any guidance on how I can do that?

Thanks.

I haven't used Access for that long so I'm useless with all the technical terms, sorry.

View 1 Replies View Related

Pls Help Im Stuck

May 11, 2005

Right im really stuck on this, how do you get the date visit to update correctly, it requeries but some times shows data it shouldnt. it should corispond with the subform.

next thing is the text box that says 'name needs to display the notes from that visit in , ( that thats in the sub form far right box.


any help on this would be much appreciated
in the dtabase its form "CD2"

View 10 Replies View Related

Stuck...please Help

Sep 20, 2004

Ok so I have been working on this problem for two days, and I am stuck.
It's been a little while since I've used Acess, so please pardon this question.

A database has been built compiling thousands of records of information for shipments. Here is the main problem.
Imagine if you will, that a truck is sent from teh warehouse to a customer, with the customer's order(s). So in the
database, is a record for each order. The order is comprised of the Bill of lading for the truck, the customer's name, and information about that specific set of palettes. So for example a truck may be sent to a customer, and there are 3 types of products on the truck, or only 1 type. For each record, we have the cost of shipping that individual product, as well as the amount paid for the entire bill of lading.

We've creaetd a query to pull out all the trucks that were shipped with just one product. We've also created a query to pull the 'duplicate' records. The problem lies in manipulating this "duplicate" query.

Each record in this query has multiple entries for bill of lading field, the customer's name, amt paid, and cost amt. We want to create a query from the "duplicate query", that will return just ONE listing of each bill of lading, as a well as a total cost of shipping. so for example if
bill 704555, had 3 shipments on it at a cost of $50, $17, and $33, we want a query that will compile these 3 listings into one listing (So now Bill of Lading appears once, with all the requisite information, and the total cost of $100 in a new field in this query, called totalCost). We'd calculate this by hand, but there are approximately 7000 recodrs in the query, and this will continue on an ongoing basis, so the query needs to perform teh summations.

thanks in advance for your help!
Matt

View 1 Replies View Related

Please Help! I'm Stuck!

Jan 10, 2008

Hello! I'm developing a database that is to be used for case management. Being completely self-taught it's been a bit of a struggle!!
I have a form where data is entered regarding the details of each case. This form has a button on it that opens another form for entering the details of the participants involved in each case. To make the database as user-friendly as possible I would like to add a field to my main form which counts the number of participants. The forms are linked by a case reference number & I made a query (that works) that counts each instance of a particular case number in the participants details form....then I got stuck. Is there a way of adding the results of a query to a form that is based on a table? Or else is there a way I can perform that calculation in the main form?
I would really appreciate it if you could make your replies as "Access for Dummies" as possible!

Thanks!

Oh it's Access 2007 if that helps at all.

View 5 Replies View Related

Somewhat Stuck In Bowling Db

Mar 1, 2006

I am trying to create a bowling league db in access 2003. I believe I have started with the right structure but I am having some trouble with recording the scores of the bowlers. Attached in a word doc is how I have set up the relationships. Any thoughts would be greatly appreciated.

D.J.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved