Tricky Autonumber One.

Jun 18, 2007

im creating an error reporting database.
for this the hardware/system items need entering
they will have a unique id
to assist identification i would like the unique id to start with a 3 letter code refering to the type of hardware/system/periferal followed by the number
e.g a printer will ahve the id "ptr 00000" and a computer will have the id "cpu 00000" with the 3 letters automaticaly comeing from a combobox field in the same table (form to the user)
i have allready been able to get autonumbers with 3 letters before when i created the tecnitian id they are "TEC-00000"

any help thanked. im an A2 student so i know all the code stuff.

thanks in advance

Jimmythemadman.

View Replies


ADVERTISEMENT

Here's A Tricky One (for Me Anyway)

Nov 19, 2004

I have a training database in which I want to make a text box that data only needs to be entered once for 50 records (not once for each record). But I need to include the information from that box in a form that is already getting its info from another table. When I try to do this with a second table I get this- #Name. And if I include the needed field in my query I'll have to update each record rather than just one time. I have a different database that does this, but I inherited it from someone else, who locked out design view, and I can't contact him to find out how he did it. PLEASE HELP!

Thanks,
Scott

View 5 Replies View Related

Tricky Validation

Jul 26, 2005

I do not know if I'm shooting for the moon here (I haven't seen anything like this yet). I have a database that keeps track of different flights for screw conveyors. The part number on these flights are based on many fields in the database, with a couple characters that aren't. I am trying to make a validation rule that checks to make sure the feilds that are a part of the Part Number match up, or if there is a way to have it auto-fill everything except the 2 characters that have to be entered manually. I don't even know if what I'm saying makes sense (Story of my Life).

Thanks to anyone who can help, and those who wish they could.

-Brian

View 1 Replies View Related

Tricky Query

Sep 7, 2006

I have an insurance policy database keeping track of insurance policy details for household and commercial shops and businesses.

Tables I have are tblPolicyHousehold, tblPolicyCommercialS (Shop), tblPolicyCommercialB (Business).
They each contain the following fields (the other fields they contain aren't relevant to this)... SumInsured, extCover1Desc, extCover1SumInsured, extCover2Desc, extCover2SumInsured, extCover2Desc, extCover2SumInsured

I want write a query to list all the policies with the building sum insured. Easy enough... Heres the catch.

In some of the extended cover fields it will say in the description...
"Building of 123 AnyStreet" so I want to get the value of that extended cover item where the description for it contains building...

So I want to get extCover1SumInsured where extCover1Desc LIKE "*Building*" and adding that value to the SumInsured field...

Any ideas?

View 2 Replies View Related

Tricky Query

Oct 2, 2006

I have one query that shows a NAME for each day.

Every day each NAME must have one and just one SITUATION.

So I'm trying to make a query that shows which have NO SITUAITON yet and other that shows which HAVE A SITUATION already.

View 4 Replies View Related

Tricky Query

Feb 19, 2008

Hi All,

I have attached a file which I need a help from, I need the subform to be populated based only on the Employee Code and the Dates where the employee logged-in a Job Order.

I dont have any code on the cmd button for I am lost on what will be the query statement to update the subform datasheet.

Thanks.

View 2 Replies View Related

A Tricky Security Problem

Nov 5, 2007

In Access 2003 we use an mdw file (unfortunately named system.mdw) that people are joined to (by using Workgroup Administrator) when they become a new user on the system. This works well except that it is time consuming to go through the process for every new user. I am aware that you can create a new mdw file using the user-level security wizard however I have extra problems. This was set up originally when access 97 was in use and the no of users was about 4, there are now 50 plus and growing. We have numerous databases that are all secured through the use of the same mdw file, however as people are only joining this mdw (by using the Workgroup Administrator), when we get someone with a little computer savvy they will figure out that by creating a generic system.mdw file they can escape all security levels that are in existence in the system.mdw file that we want them to use.
Is it possible to somehow get a database to associate itself with an mdw after the mdw has been extensively modified?
I am aware of short cuts that have the mdw file in them but they are easily bypassed. Furthermore as we have numerous probably 100 databases all pointing at the one mdw file is it possible to get them all associated with the same mdw file? I have looked through the forums and various others but have not found an answer that will help me. Can anyone help?

View 5 Replies View Related

Tricky SQL/Access Problem

Jan 10, 2008

Hi all,

My boss has asked me if I could take a look at the following problem and whilst I've searched around and tinkered with it myself I'm not making too much progress!

Here is an example:

I have forecast data for working weekdays Mon-Fri. For the weekend I need to replicate data from Friday across the Sat/Sun rows. This is just outside my remit! The data is then exported to Excel where imbalance costs etc. are calculated.

Background: The result will be that management will be able to tell what value *weekend* work will have. At present I already have a set of results for all DF activity. If we take that figure and subtract THIS result we'll be able to see how much benefit working on the weekend has.

Something management are very keen on looking into :)

Any suggestions on where to start would be much appreciated.

Thanks.

View 3 Replies View Related

Tricky Table Trouble

Feb 3, 2008

Ok, I have a table that contains a number of yes/no fields depending on location.

There are two main parts of my db that use this, one is users (for their departments) and the second is changes (for secondary locations)

I want to have two fields in the table used to reference a set of locations. Meaning i can reference the table and get locations where userID = 3 or alternativly where ChangeNumber = 6

Can somebody help me in making this work. Im currently having issues with duplicate values etc

View 3 Replies View Related

Tricky Unmatched Query

Jul 15, 2005

Hello all:

In table 1 I have some document #s
e.g.
320
321
322
170
171
172
151
152

In table 2 I have some document #s e.g.
170
171
151

I would like to create a query, that will look at the document #s starting with 17* and 15* in table 1 and look for it in table 2, if the document #s do not exist, I would like the query to spill out the following:

320
321
322
172
152

Is this possible?

Thanks so much in advance for helping!

View 3 Replies View Related

Tricky Form Question

Apr 25, 2006

Hi all - I am not sure if this is even possible, but I know if it is someone here will know how to do it. I have a table with a list of dogs names. The dogs run in a team so I have another table with their run record. Currently, the form would have a text box where you select the dog's name and then another text box where you select the position in the team so it looks like this:

name1, position1
name2, position2

and so on. I would like to create the form where the text boxes are aligned to look like the team and the person would just have to select the dog's name that ran that position and the code behind would create a record that looks like the one above. For example, here is what the form would look like:

Position1 Position2
Position3 Position4
Position5 Position6

I would like the person to be able to select the dog's name in the text box labeled Position1 then move on to select the dog's name in Position2 and so on. I am imagining the record will still look like the one above. Meaning,

name1, position1
name2, position2, and so on.

Does anyone know if this is possible? Thanks so much for all your help. This forum has been so helpful in the past, I thought I would just put this out there.

Therese

View 5 Replies View Related

Long Date Format Very Tricky

Aug 23, 2005

Hi all,
I have a table that has a long date format for example 05/05/05 02:40:34 AM how can I add an 8 hours to the date and time. Please help if you can because I"m going nuts!!! thanks. I want it to look like 05/05/05 10:40:34 AM

View 11 Replies View Related

Newbie - Tricky Importing From Excel Problem

Apr 14, 2006

I'm probably approaching this wrong, as I'm definitely out of my depth - maybe someone can offer some advice

I have 2 spreadsheets. One is a simple parts list with a code and some other info - I've loaded this into Access no problem.

The second sheet is used for ordering - it contains one text field with a company name at the top, followed by a list all in one column of all of the item codes, and another column with a description, and a third column with an x in against each item being ordered.

What I would like to do is set up a new table with the company name, and then each of the item codes which have been selected (there will always be a maximum of 10 ordered so I envisage a field per ordered item code).

I haven't got a clue how to do this - Can anyone help?

I can then link the two tables and print a report - I could probably do this bit.

Thanks for any advice

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

Tricky - Highlight Listbox Pre-Loaded From Master Highlighted From Saved

Feb 13, 2006

Hello Everyone :D :

I have a reporting interface providing users with a multitude of reporting options and capabilities. One aspect involves utilizing the ability to allow users to save their settings on the interface due to the number of options provided. One of the aspects revolves around working with listboxes.

Each listbox is pre-loaded every time with a list of items from a master table pertaining to the listbox. The user selects their desired choices, saves*, etc...Once loading a setting, I'm looking to have the listbox pre-loaded (easy) but then auto highlighting the items selected or rather pulled from the user settings table (each listbox has own table for user saving of options). So, if a user selects items Alpha, Beta, Delta, and Falcon from a list of 100 choices, then those 4 items would be saved under that user setting, within the code table (user specific). When they load the setting back onto the user interface, it should pull the 100 choices and auto highlight the 4 items. Hopefully I've explained that properly.

*A user is able to save, save as, load settings, unload settings, etc...from the reporting interface. When a user saves settings, these settings are saved within the user settings tables. Each table varies depending on the nature of the values within the reporting interface. Listboxes have their own tables connected to the primary settings table.


Any ideas anyone? :rolleyes: :D

View 4 Replies View Related

Tricky Question - Form Part Data Entry, Part Not

Dec 16, 2004

I have what I think is a difficult problem to overcome...

I am designing a form to create an invoice. The user will select a workstream and a date range in form frmInvByHrs. Within this I want two sub-forms, one is frmInvByHrsTsht and the other is frmInvByHrsBill. I want the first one to display all the staff and their hours done, and the second one to be in data entry mode where you can enter the hours you want to bill. Each sub-form is based on a separate query.

Is it possible to do this? ie. to have one sub-form in data entry mode, and the other not? It seems to me that the data entry mode is controlled by the MAIN form regardless of the sub-form settings!

If this is not possible, do you know how I can acheive this?

Thanks

S

View 1 Replies View Related

AutoNumber

Apr 20, 2006

Hello,

I have a question. I would like to be able to have an autonumber in the main form be applied to text boxes on the subform. So If I enter a name in the main form, an autonumber is generated, then that number is automatically entered into the boxes in my subform. My subform is a datasheet view with many records. I want all the records to have the autonumber generated in the main form. Is there a way to do this. Currently I have the boxes in the subform retrieve the autonumber by setting it equal to the autonumber text box on the main form. I would think that there would be an easier way to accomplish this seemingly simple task.

Thanks,

Adam

View 5 Replies View Related

Autonumber

Feb 26, 2005

hello,
I am using SQL INSERT INTO where I insert values from my form Me!value1 etc
I have an autonumber in the table where I am using INSERT INTO, and when I exclude the autonumber it says that the number of columns does not match. I tried assigning a number manually in SQL and it works fine, but I can't use autonumber anymore. Is there a way to use autonumber and still do INSERT INTO or is there a way I can find the highest number and put the next highest in there through VBA?

Thanks in advance

View 2 Replies View Related

ID Autonumber Gets Set As 5E+08

Mar 7, 2005

In the main table of my d/base (just testing) - when a new record is entered using a form, the Autonumber Key ID becomes 5E+08.

Whats that imply ? There are some One-To-Many sub tables running off the main table, but I can't see how they could cause a problem.

NoVoiceLeft

View 4 Replies View Related

Autonumber

May 26, 2005

How do I assign an autonumber to a table after the table is created. I know it ask after you create a table, but I answered no. Now I want it to assign each record an autonumber?

Thanks

View 1 Replies View Related

ID (Autonumber)

Oct 9, 2005

Hi:

In the table,

I set ID (auto number),
How large the number? What is the limit number?
After it used, will it set back to 1 again?

Please let me know, thanks

Thanks a lot. Thanks.

View 2 Replies View Related

Autonumber

Oct 13, 2005

Can any body help please

Is there any way you could renumber the autonumber, I have deleted some records in my table and the numbering orders have a gap and I would like the numbers to rearange automatically as the record or records are deleted.

Thank you.

View 2 Replies View Related

Autonumber

Jun 2, 2006

Hello everybody,

I have a problem which I couldn't solve.
I have two tables. There're relationships is one to many (1:N).
The first one is Order and the other one is OrderItems.
Order(order_ID,...) and OrderItems(order_ID, lineitem,...).
The compound key of the relation OrderItems is order_ID and lineitem). What I exactly want? I want for every new Order_ID to have restarting count of lineitem.

example:

Order_ID, LineItem
1 1
1 2
1 3

Order_ID, LineItem
2 1
2 2
2 3

Thanks in advance.

View 1 Replies View Related

I Want To Add An Autonumber To...

Jan 11, 2007

I have a fairly small database I recently built that includes a particular table in which I meant for the primary key to be an Autonumber field. Apparently I forgot to set it this way and it currently sits as just a Number field. There are nine tables in this database with a couple hundred records in the main tables.

Is it possible to change this field to an Autonumber at this point? I have attempted to change it and it wants me to remove all the relationships. It also seems to be necessary to copy all the records out before reseting and then copy them all back in or it will not let me proceed.

Will doing it this way work? Is there a better way to do it? Please advise. Thanks.

View 1 Replies View Related

Add Autonumber

Jun 5, 2007

Apologies if this has been asked before:

I have a small table in access 2003 with autonumbers. I managed to delete two records by mistake (autonumbers 23 & 24).

Is there any way to add them back in?? It is important as these numbers have been specific to those records for a couple of years.

Thanks in advance!

View 14 Replies View Related

AutoNumber ?

Jan 8, 2008

Good Morning,
Is it possible to have an autonumber field start at a given number, say 9999999 and count backwards?

I have a program that is generating badge ID numbers but I have a bunch that already exist and going backwards seems like the easiest way to mesh the 2.

View 3 Replies View Related







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