Autonumber Given Crazy Negitive Numbers

Jan 14, 2008

Hi All,

I have a table with starts with an autonumber as a primary key.
Recently it has been giving out crazy high and sometimes negative numbers when a new record is created

Dose any know what might cause this?

p.s. I've tried compacting and repairing the DB


- E|fmAn

View Replies


ADVERTISEMENT

Autonumber TradeID - How Not To Skip Deleted Numbers ?

Apr 8, 2008

Is it possible for AutoNumber ID not to skip deleted IDs ?
for instance if I deleted item with id # 5, I want the next record to have Id # 5

View 1 Replies View Related

Tables :: Autonumber Field Missing Numbers?

Dec 12, 2012

I got a table with "ID" as autonumber field. However when I have ID numbers:

1
2
3
4
5
6
7

And I remove record 4, then I got

1
2
3
5
6
7

How can I make it fill up the missing "4"?

View 5 Replies View Related

I Think I'm Going Crazy....

Feb 17, 2006

I am redesigning an old database. There is a form that has an unbound combo box field that gets its values from a query. Basically, someone will choose a value from the combobox and a subform will display all records for that value.

Here is my dilemma...

In the old database, if I typed an N in that combo box, it would immediately go to the "N"s in the combo. However, in the new database...nothing happens when you start to type in the combo box. You either have to type the whole thing in or actually use the dropdown button. I have checked every setting imagineable...and I can't find how to get it to autofill based on the letters entered. It is driving me nuts!!!

HELP!!

View 5 Replies View Related

Crazy Thing

Aug 30, 2005

I've been ask to think of some solution to this problem but i'm no way near of it. I have a txt file (ascii) with aprox. 1845000 lines.

The code is something like this:

"++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++
Date:02-12-2004Time: 11:06:24

Job Number:2542
Job Name:al
Priority:Normal

User Name:msescudeiro
Customer:
Account:1341000
Distribution:
Notes:

--------------------------------------------------------------------------------

Original Filename:C-0884_Vers_E.TIF

recycled paper
Used Area:0
Plotted Area:0

Media:paper
Used Area:4977
Plotted Area:4977

Media:film
Used Area:0
Plotted Area:0

Media:vellum
Used Area:0
Plotted Area:0

Operation Count
Mirror:0
Rotate:0
Zoom:0
Stamp:0
Fold:38

++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++

I need to have a table like this:

View 14 Replies View Related

Relations Driving Me Crazy

Mar 3, 2007

Hi,
I'm trying to build a mdb which holds customer details, which insurance they have, who sold them this and which Insurance company provided this.
The relations I have to make are driving me nuts !
When I try to enter a new customer in a Form, there is a advisor added, the package the customer wants is added. But this shouldn't happen for the advisor and the package allready exists !

Who can help me with the proper relations ?
Attached is screendump of the current relations.

Thanks a lot !

View 8 Replies View Related

Yes/No Field Making Me Crazy

Nov 14, 2007

I posted this in the wrong thread yesterday

I just started learning Access and I have created a database with 53 records, 3 tables and 1 Split form. I creared a new yes/no field and I am attempting to display "Completed" in green for yes and "Not Completed" in red for no. I used the correct code in the format field:

"Not Completed "[Red];" Completed "[Green]

This worked for different field before I created the split form but now I cannot get the new field to display anything but check boxes regardless of what code I use. It won't even let me use the default yes/no, true/false or on/off options.

I've been studying this for about 2 weeks and I've figured out quite a bit but this one thing is really iritating me....

Help
Any comments would be appreciated
John

View 3 Replies View Related

Relationships... Driving Me Crazy!

Oct 18, 2006

Hehe... and since me and my girlfriend just broke up, that seems applicaple both in the dbase and the real world ;)

I have one Access Database. For now containing three Tables:

KlantNAW (customer adress data) with one primary key, Klantnummer (clientnumber) which is an Autonumber Data Type, Long Int, Increment, Indexed: Yes (No dupes).

CaseDateTimeInfoTable with one primary key, Casenumber which is an Autonumber type, Long Int, Incremental, Indexed: Yes (No dupes).
Within this table I have included the Klantnummer field from KlantNAW as a Number, Indexed: Yes (dupes OK).

CaseTechInfoTable with no primary keys but with both the KlantNummer field and the CaseNumber field included. Both have a direct relationship to the tables in which those two values are created. Both values are now of type Number, both are Indexed, but Klantnummer is set to Duplicates OK and Casenumber is set to No Duplicates. I don't know if it might be wiser to just not index those values in this table, since they are already indexed in the tables in which they are created, if someone could tell me which is better in this case, please do.

I have created a one-to-many relationship (well actually, access seems to decide whether it becomes a one-to-many or one-to-one relationship) between KlantNAW.Klantnummer and CaseDateTimeInfoTable.Klantnummer with Join Type 1 and I've created a Join Type 1, one-to-many relationship between KlantNAW.Klantnummer and CaseTechInfoTable.Klantnummer.
There is only one extra relationship left, which is a one-to-one, Join Type 1 CaseDateTimeInfoTable.CaseNumber with CaseTechInfoTable.CaseNumber.

So ehrm.... a recap:
KlantNAW.Klantnummer (P-key) with CaseDateTimeInfoTable.Klantnummer
KlantNAW.Klantnummer (P-key) with CaseTechInfoTable.Klantnummer
CaseDateTimeInfoTable.CaseNumber (P-key) with CaseTechInfoTable.Casenumber

If I leave it like that the dbase works perfectly except for the fact that when I delete a customer the related case date/time info and the case tech info don't delete with the client account accordingly.

So, I thought I'd "Enforce Referential Integrity" and "Cascade Delete Related Records". I do not know if it would be wise to also enable "Cascade Update Related Fields". Could someone please tell me if that would be wise to do or not? And maybe even why... I have some beginner and more advanced books but can't be sure, probably because of lack of experience (or maybe lack of brains ;) ).

Anyway, back to the problem: when I make all the relationships to Enforce Rererential Integrity and I add a customer through a form (KlantNAW_InvoerForm) and click the "Create new case for this customer" button, the form I use for entering the case date info pops up nicely, but when I try to close that form I get an Error stating: "You cannot add or change a record because a related record is required in table "KlantNAW"". So, I click ok, then get a messagebox stating I can't save the record at this time. Do I want to close anyway? .... well, ok. Let's do that. And now the strange thing is that after that, when I do absolutely nothing other than pressing the create new case button again, enter the date/time info into the form and close it again, no errors or messages come up. Wel... that should happen the first time around right? What's wrong?

Now... I'm really lost. I'm new at this. I made some tables, queries and forms, set all options for all values, that which I didn't understand mostly tried solving or finding out on my own but now I'm hitting a brick wall.

If you guys and gals could help me out I would really be very grateful for that.

EDIT: I even tried making it more simple by removing all relationships and creating just one new one between KlantNAW.KlantNummer and CaseDateTimeInfoTable.Klantnummer (type 1, enforce referential integrity and cascade deleted records) but still, the same problem arises.

EDIT2: made sure it was not a form thing by just putting in data in the table data views directly. Same thing occurs.

View 14 Replies View Related

Yes/No Field Driving Me Crazy

Nov 13, 2007

I just started learning Access and I have created a database with 53 records, 3 tables and 1 Split form. I creared a new yes/no field and I am attempting to display "Completed" in green for yes and "Not Completed" in red for no. I used the correct code in the format field:

"Not Completed "[Red];" Completed "[Green]

This worked for different field before I created the split form but now I cannot get the new field to display anything but check boxes regardless of what code I use. It won't even let me use the default yes/no, true/false or on/off options.

I've been studying this for about 2 weeks and I've figured out quite a bit but this one thing is really iritating me....:eek:

Help
Any comments would be appreciated
John

View 3 Replies View Related

Charts Driving Me Crazy

Jul 19, 2005

I am trying to create a chart on a Form. In Excel I have no problems arranging my data. This is my first try for charts in Access. I have a table. I created a query summing two fields of this table:

Total Workers
Total Workers: DCount("[WorkerNameLast]","1-StationVerifyTbl","[ClockNbr]<>'*'")
Total Workers = 120

Total Verified
Verified Workers: DCount("[WorkerNameLast]","1-StationVerifyTbl","[StaPrimary]=True")
Total Verified = 43

So far so good. That is the correct information. What I want in a Chart is two bars side by side. One bar at 120 and the other bar at 43. I have tried everything and cannot get this to work. I am getting confused on the Axis, Data, & Series. I think I need another Field somehow. The totals I would call Monthly Totals

Could someone please help me get this thing started. I have wasted a week and feel like I have learned nothing except how to count in the Query.

After this I would like to be able to show a percentage of those verified. I have 120 workers and 43 are verified. That would be approx 35%. Anyway I am assuming that there is a solution and that I am just floundering for nothing. Thanks in advance.

View 8 Replies View Related

Crazy Subform Problem

Aug 9, 2005

I am biulding a database with quite a few subforms but now I have a wierd problem.

I am building a form that displays upcoming IT courses. so I have sumbforms for word, excel, outlook... you get the picture.

All the subforms work well except the outlook subform. When I create the subform with a wizard. When I go into form view mode to check, the form displays Outlook courses. When I save the form, the outlook subform then changes itself to Excel!


When I open the excel form and the outlook forms independently (not as subforms) the work fine and the data sources (queries are correct)

I've tried deleting the subform over and over again but everytime I hit the save button, The outlook form reverts to Excel.

I've gone as far as checking if there is any code behind the main form that makes this happen, but nothing.

Can anyone heelp>? this is driving me crazy! :confused:

View 2 Replies View Related

Crazy Form!!! No Clue???

Jul 14, 2006

I am pretty sure that this is crazy! I have attatched a word document (the quickest way for me to show and explain at the same time) that shows in a print screen picture what I want done with this form. There is colored text explaining. Any questions feel free to ask. I am pretty sure that this is ridiculously tough and am not sure that it is even possible with access. Please help, and may the gods give tons of wealth to whomever can solve my problems.

View 1 Replies View Related

Controlling Autonumber Field - Start Autonumber From 1 Everyday (Composite Key)

Nov 21, 2013

I have two tables linked to each other in one to many relationship. Instead of auto number, the date and shift (Text) is being used as the primary keys (Composite Primary Key). Here is the tables structures,

Payouts Table:
Date: Primary Key
Shift (Day or Night) : Primary Key

Bills Table:
Date: Primary Key
Shift (Day or Night): Primary Key
Autonumber: Primary Key

The tables Payouts and Bills has one to many relationship. One payout row can have many bills. The problem is that I want to start the Autonumber in bills table everyday from 1. As date and shift are different for every day so even if i start bills from 1 everyday, it wont make same primary key. I can do it manually but I want to make it automatically.

View 4 Replies View Related

Crazy: FirstName / LastName Set As Primary Key...

Jul 14, 2006

I am looking at a database where the Primary Key is a composite of the customer's First & Last name. Obviously a huge problem! The funny thing is, the table was set up to with an Autonumber CustomerID, so all customers have this information already.

Here's the question: there is a one to many relationship with an orders table, how can I change the primary key from the composite key it uses now, to the autonumber field and not mess up the relationships?

Thanks for help in advance.

View 5 Replies View Related

Import From Crazy Excel File

Apr 14, 2006

Greetings,

I searched on IMPORT, but didn't see anything like the problem I have.

I have a large Excel file formatted thus;
COLUMN A COLUMN B COLUMN C
1 Full Name
2 Full address
3 City State Zip
4 Phone SSN Sex

Alas, as you can see, the first four rows contain information on one person, then Column B contains just their SSN on Row 4, and so forth.

Row 5 begins the cycle again. This goes on for 160 people.

Is there a way to get the employee information contained in Column A in a 'nomalized' format, such as Full Name in Col A, Full Address in Col B, and so on?

Unfortunately, it's illegal here to whack the person who provided this data to me.

Thanks in advance !!

View 3 Replies View Related

Import From Crazy Excel File

Apr 15, 2006

Sorry for cross-posting. I posted this in the Tables forum, but have had no replies in over 12 hours.

I searched on IMPORT (72 threads), but didn't see anything like the problem I have.

I have a large Excel file formatted thus;
COLUMN A
1 Full Name
2 Full address
3 City State Zip

Columns B and on have other information for the employee in Column A.

I need to get the employee information in Col A into a tabular form, such as (A) Employee Name, (B) Address, (C) City, (D) State, (E) ZIP

If this could be done with the data in Column A, I believe I could join the employee info currently in Col A to the remainder of the data.

I've also looked at the Excel forum with no luck.

Suggestions would be appreciated !!

View 1 Replies View Related

Subforms And Textboxes Driving Me Crazy

May 27, 2006

I have a subform with textboxes for data entry.
I want the last data entered to stay displayed in the textboxes after the form is closed.

When the form is re-opened the textboxes display a row af data several rows down.

How do you link the textboxes to the feilds of the subform the new data is always at the top row.

Example:

Form textboxes data Entry:
Apples Oranges Pears grapes

Click command button to save:

Subform displays
Apples Oranges Pears grapes
Grapes Kiwi Tangerines Corn
Beans Lettuce Okra Rice

Close form Text boxes still display Apples Oranges Pears Grapes
Open form back up

Text Boxes Display
Grapes Kiwi Tangerines Corn

Subform Displays:
Apples Oranges Pears grapes
Grapes Kiwi Tangerines Corn
Beans Lettuce Okra Rice

How Can I make this work Right?
If anyone knows how to do this please Help.
If it must be done in code please provide an example.
I need to get this worked out this weekend.

Thanks for all the help
You guys are great!:D

Charles

View 4 Replies View Related

Dates Search Is Driving Me Crazy!

Jun 14, 2006

Hello!

Hope someone can help. My code behind my command button is not working. It is opening Report1 but not the criteria in the query.

I have a form (form1) with 2 unbound text boxes on, called "txtDatefrm" and "txtDateto" in which dates can be entered. There is also a command button on the form which searches for these dates and then opens a report(Report1). The report's control source is a query. (query1). On the ExpiryDate field in the query I have the criteria:
Between ([forms]![form1]![txtDateFrm]) and ([forms]![form1]![txtDateTo])

Behind the command button I have the code:
Dim stdocname as string
Dim ExpiryDate as Date
txtDateFrm.setfocus
ExpiryDate = txtDateFrm.text
If Trim(ExpiryDate) <>"" Then
stdocname = "Report1"
Docmd.Openreport stdocname,acViewPreview
End if

Many Thanks for any suggestions!:eek:

View 4 Replies View Related

Crazy Pipe Dream Of A Question

Mar 28, 2008

Ok so I have my employee database and each employee has a bunch of different professional credentials that expire at different times. In layman's terms, Is there a way that I can set something up to automatically e-mail the employee to let them and their manager know that their credentials will be expiring within a couple of months?

View 3 Replies View Related

Crazy Data Problem “I Am Stumped”

Mar 27, 2008

Hello,
When I try to run any query that contains a specific table I get a message a Not enough memory error. I can open that table which, contains 47 thousand records and view that data unless I get to one record then the entire database crashes. I have tried to Compress and Repair and the database crashes. When I say crash I means it completely disappears and I get the send error to Microsoft Message. I can not select record due to it crashes when I get to it. I have also tried selecting record by going to one above the quickly scrolling to a record way below it and it errors and crashes. I have tried to delete it using a delete query and it only returns “Invalid argument” when I try to select or delete.

ANY suggestions or ideas would be greatly appreciated.

View 10 Replies View Related

Run-time Error '438'. - Driving Me Crazy

Sep 11, 2003

Run-time error '438'. Object doesn't support this property or method

The command:

If Not IsNull(DLookup("[JSANo]", "JSA", "[JSANo] = '" & Me.JSANo & "'")) Then

I think the rest of the code is uncessary. I have searched Google over and over. From what I can gather this error can mean more than one thing.

I have moved the data into another new exact same field, deleted the old field, renamed the new field to have the old field name. Still keep getting this message. At one time, I had messed with the index settings on the field. Thought I saw something about that can cause problems.

I have this exact same command on another field name and it works perfectly, but on this one I get the above error. Ideas?

View 1 Replies View Related

Queries :: Search For Multiple Plot Numbers Preferably In One Parameter Prompt With Comma To Separate Numbers

Aug 12, 2014

I'm having multiple problems with my database like things such as -

i'm currently working on the Query 2 - On the Phone database (ignore Query 1) and i want to search for multiple plot numbers preferably in one parameter prompt with a comma to seperate numbers. (this could be a multitude of numbers so i would like to be able to input as many as needed). Also when i do search on this query since the Criteria is a 'Between' Value i would expect everything between the 2 numbers input to show up - but a lot of numbers out of the range show up too - why is this? (The Numbers are like "69 to 136" and they will show up - but 1-69 and 136-170 would too

I would also like to implement the search results from Query 2 into the Form i currently have made but it just opens up a access table when the search is made?

i cannot link my database as it is too big for the server - But here are the Criteria for Query 2:

Plot No - (criteria = Between [Enter First Plot No:] And [Enter Last Plot No:])
Site - (criteria = Like "*" & [Enter Site:] & "*")
Product - (criteria = Like "*" & [Enter Product:] & "*"

The Query is the one im most concerned about , i can live without a form.

View 14 Replies View Related

Numbers Stored As Text Convert To Numbers?

Jan 10, 2007

Ok so in excel I have some numbers that are stored as text. The reason being that they are zip codes and some begin with 0 and excel doesn't want numbers to start with 0....so when I import these into an access field that has an input mask for zip codes...will it convert these correctly since the field is a text with input mask?

View 1 Replies View Related

Modules & VBA :: Automate Line Numbers And PO Numbers

Aug 24, 2014

I have 2 fields that I would like to automate if possible

One field is called "p/o number" and another field called "line no"

These fields are part of an ordering database

Let say I have 200 items to purchase form 10 suppliers

And form example 20 items from each supplier

What I do at present is put the order number on each line item and the line number

example

p/o number line no

1 1
1 2
1 3

2 1
2 2
2 3
2 4

What I want to do is just put the first po number in the required line . Put the first line number in i.e. "1" and the macro will complete all the p/o numbers and line numbers for me as per the ones marked in red.

Example

1 1
2 2
3 3

2 1
2 2
2 3

View 5 Replies View Related

Multi Record/Query/Multi Table/Going Crazy Issues

Sep 7, 2007

I have spent the last couple of days trying to figure out how to make this work.

I have three tables.

tblIntakeMain
[IntakeMainID]

tblIncidentDetails
[IncidentdeatailsID]

tblPersonnel
[PersonnelID]

On the main form I use subforms to link tblIncidentDetails and tblPersonnel to tblIntakeMain. Both subforms can, and do, have many entries. This all works fine. What is not working is the search form I am using.

I am using Gromits most excellent Search Form. The problem is when I create a query, qSearch, to bring together the three tables I get a multiple records which makes the searches very confusing and near useless. Is there anyway around this? Is there something I am missing? Is there another search method I could use that would work in a similar way as Gromits? Please help before the Prozac runs out and I lose my mind--what little it left.

View 5 Replies View Related

Counting Frequency Of Numbers And Comparing To Frequency Of Another Set Of Numbers In Same Row

Oct 28, 2014

I have a table with fields like this one but the weeks go all the way up to 52. What I am trying to do is count the number of consecutive zeros and if it is more than five, count how many of the following fields have a number in them and if that number is less than the number of zeros preceding it identify that person.

For example Joe would be identified below because he had 6 consecutive zeros and then he had 5 weeks of numbers immediately following the string of zeros. Bob would not be identified because he had 5 consecutive zeros and then 5 sets of numbers immediately following the string of zeros so the zero frequency isnt higher than the number frequency immediately following.

ID
Name
Date of Hire
1
2
3
4
5

[code]...

View 5 Replies View Related







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