Tables :: Formatting A Table Field?

Mar 31, 2013

In a table, I would like a particular field to look thusly:

xx-xx-x-x-x

My question is how do I format it so that the dashes (-) are automatically inserted when the data is keyed into the input screen. The dashes would also have to be displayed on the table.

View Replies


ADVERTISEMENT

Tables :: Formatting Addresses In A Text Field Within A Table

May 22, 2013

I have been using Access for several years but always in a basic way. I have started work on an existing Members database where the Members Addresses have been pasted in from Notepad or been imported from csv or manual entry.The ones that have been manually entered are on one line. The ones that are imported from csv or pasted from Notepad are on multiple lines like you would naturally type on an envelope..In Notepad they look like this:

'Oakdale' 123 Expression Road
Name of Town
Name of County
Postcode

Sometimes the addresses have 4 lines and sometime they also have the name of a village which makes it 5 or 6 lines. When imported into Access they also view (datasheet view) in the same way with the return at the end of each line. However, I cannot enter a new address in this manner directly into Access.How can I enter the address text into a text filed and be able to format it so that it looks like the above?

I have searched many times for an answer to this but cannot find a way of explaining it that search engines understand. I first came across this 12 years ago when I worked on a massive Members database for a radio station all the addresses where formatted in the same way and had been imported through csv. When I do this the csv file marks up the text as "'Oakdale' 123 Expression Roadâ–¡Name of Townâ–¡Name of Countyâ–¡Postcode"

I have tried exporting to csv ad then importing it into GMAIL and this works fine I have also printed off labels and envelopes and all the addresses print fine too; I just don't know how to input it in that format other than pasting all addresses through a basic text file.

View 5 Replies View Related

Tables :: Field Formatting With Focus

Oct 12, 2012

I have a SSN field and i want it to have the dashed (I got this part down.) But when I click on the field to copy an paste it I want the dashes to disappear. I am thinking What ever the code (if any) would on in the fields onFocus event. I don't want it to copy the dashes.

View 14 Replies View Related

Tables :: Phone Statistics - Formatting Field To Show Duration Not Time

Apr 13, 2014

I am building a database to enter staff phone statistics. As an example my fields would be - Name, Date, Staffed time, Available time, Aux time and then calculated fields to show the percentage of time i.e %Aux, %Available etc.

My problem is the formatting of the times entered as they are duration not time. Say staffed time is entered as 08:00:00 for 8 hours and Aux time 03:57:21. The only format I can see to suit is date time but then Access takes these entries as 8am and 3:57am is there a way to change this to work as duration hh:mm:ss?

View 6 Replies View Related

Tables :: Auto-populate Table Field From Calculated Field In Another Table?

Jan 15, 2015

I am creating a database to keep up with the expenses for my art business. I have a table for Vendors with a field (Mileage) for one-way mileage that I enter manually (EX: 11.8 miles). Then I have a calculated field that basically just multiplies the Mileage field times two to get total mileage to and from my house to vendor location. (Total Miles) {The reason I want to do this this way right now is because I didn't keep up with my mileage this year and I am having to look up the distance from my home to each location)

Then I have a "supplies" table where I show the date, the vendor, the item, cost, etc, and I want to add a Total Mileage field based on the calculated Total Miles field in the Vendors table that will automatically populate based on the vendor of each transaction. I just can't remember how to make this work and I know just enough SQL to be dangerous.

View 2 Replies View Related

Tables :: Update A Field In One Table Based On Status Of A Field In Another Table

Aug 2, 2013

I have started work on a database to track the many (several hundred per annum) projects my company undertakes. A 'main' table lists projects, their fees, their key dates, their project numbers, etc. I have created another table for tasks. Each task is assigned to a project (via the project number), and may be 'open' or 'closed'. I have separated the tasks table from the projects table as there may be several different tasks for each project. It is also good to keep a record of the tasks.

I want to prepare a report from the projects table that lists projects IF they have any open tasks.

In my mind, this means 'If a task, with the corresponding project number, is open, put a 'Yes' in the 'Tasks open' field of the Projects table.'

View 7 Replies View Related

Tables :: Auto Populate Field Based On Answer Of Another Field In Same Table

Feb 28, 2013

Within my table if Field 1 has an answer of Self (from drop down), then, I would like Fields 6-12 to auto populate; however, if Field 1 does not have an answer of Self, then leave Fields 6-12 blank.

I am not quite sure how to lay this out. I am using Access 2010.

View 8 Replies View Related

Tables :: Numeric Field In A Table - Setting Field Property?

Nov 16, 2013

I have a numeric field (long integer) in a table. I've set the format to fixed. No matter what I set the decimal places to, auto, 0 or 2, when I enter a value of 0.71, it displays as 1.00

In my form, I've also set the field property to fixed, but it displays the value as 1.

View 2 Replies View Related

Tables :: How To Make Calculated Field Based On Field In Another Table

Jun 18, 2014

Table1 contain Two fields (3Months) and (6Months)

Table2 contain Two fields (3Months) and (6Months)

the table 2 is the source of a form that will let the user change the numbers. table 1 should change Date1 and Date2 Fields based on the two fields (3months) and (6months) if i want to make a lookup wizard it should be changed manually and if i make a calculated field i can't find other tables in the expression builder

View 1 Replies View Related

Tables :: Autopopulation Of Field From Another Table Based On Another Field Criteria

Dec 5, 2012

I have a main table which is autonumbered on unitid, I have another table which is linked via the unitid which holds items purchased for the main table, so the second table is a subform of the suppliers and will have multiple entries of the same unitid. What I would like to do is when an item is entered into the second table, check the main table to see if it exists, if it does populate the unitid field with the unitid from the main table, and if not exist create a new record in the main table with the next unitid number.

This in essence is what I want, bearing in mind that the tblinvoices is a subform and the tblmain is not open.

If ([tblinvoices]![Unit] = [tblmain]![Unit]) Then
[tblinvoices]![UnitID] = [tblinvoices]![UnitID]
End If

View 3 Replies View Related

Tables :: Pull Field From Main Table And Create A New Table With Date Stamp

Nov 4, 2014

I have a make-table query that pulls all the fields from 1 table (MainTable), and creates a new table with a date stamp based apon a form value entered (New Table = MainTableWithDate).

Currently, I setup the query to pull info from the form field like this:

DateField: [Forms]![frmmain]![DateField]

However, when the make-table query is done - all date fields are blank (all other fields are correctly created), and when I look at the new created table (mainTableWIthDate), the typeassigned to the date field is "Binary" (in the form, I've specified LongDate).

View 6 Replies View Related

Tables :: Make Calculated Field In One Table That Calculates Values From Another Table Linked By Order ID

May 13, 2015

I have what is probably a stupid question but I've been struggling with this one for a while. I have an ordering database which has an Orders table (containing Order ID, Date, Supplier etc) and an Order Line table within which I have a combo box for Product name, supplier, price, VAT rate, Line price etc. At the moment, I have the order line table as a subform within the Order form (run from the Orders table). The problem I'm having is the subtotal and total fields. At the moment these are in the Order Line table as I cannot figure out how to get these in the Orders table. In summary, can I make a calculated field in one table that calculates values from another table (linked by Order ID)?

View 3 Replies View Related

Tables :: Update A Field Of Table A By Entering Data On Table B

Sep 14, 2012

Some days ago I made it by using "query", but now I forget it how I make the relation on this situation. Here is my problem.I have 3 Table on mdb file, named Table: A, B, Status.Table Status have One Filed with 1 Data: Dishonor

Table A have three fields

Sl Number: (Auto Number)
Status: Lookup wizard-data of (Table-Status)-Default Value is "Honor"
Amount:Number

Table B have two Fileds
Sl Number: Number
Status: Lookup wizard-data of (Table-Status)

After Entering Some data on Table A it's Look like as:

Asl numberstatusamount
1Honor5222
2Honor855
3Honor988
4Honor7777
5Honor777
6Honor9999

[code]...

Now I want to change the Status of SL Number Honor to Dishonor so I fillup data on Table B is as like following

sl numberstatus
5Dishonor

Now how I can get the result as following by using query:sl numberstatusamount
1Honor5222
2Honor855
3Honor988
4Honor7777
5Dishonor777
6Honor9999
7Honor6666
8Honor7777
9Honor666

View 1 Replies View Related

Tables :: Possible To Have The Field Names In Table Be Set By Values In Another Table?

Jul 27, 2014

Is it possible to have the field names in a table be set by the values in another table? The desire being that for a database used in various locations, the local variations could be changed in one table which would then propagate that change throughout all the forms, reports, tables etc.

View 14 Replies View Related

New To Access, Auto Formatting Tables

Jun 17, 2005

Hey guys, very new to access.

I've been put in charge of setting up a database for work which stores statement and invoice information.

I'm just wondering how I can auto format a field.
I'm guessing it's in the "Validation" section.

A statement is a collective of invoices for each month.
So each March '05 Statement will contain all March '05 Invoices



Basically, what I would like it to be able to do (:)) is for the date inputed into the database, it creates it's own "statementnumber".

Eg. March '05 will create a number as 305 for example. 3 being the month, 05 being the year.
Because I need a common number to setup a relationship of One-to-Many.
Just wondering if this was possible.

Thanks guys :)
Greg

View 7 Replies View Related

Tables :: Calculated Column Expression Formatting

Nov 4, 2013

I've now since moved everything into one table but i need formatting of my calculated field (I'm new to all this).

Below are the 3 expressions working independently of one another, I just need them combined in to one if possible. As I am getting an "invalid syntax" error or "too many arguments" when I try to get it working

PHP Code:

0.5*IIf([Type]="Offlist" And [APP_LINE_OFFA]>3,1,0)+0.2*IIf([Type]="Offlist" And [APP_LINE_OFFB]>2,1,0)+
IIf([Type]="Offlist",Abs([EP_DETAILS_OFF]*0.15+[REF_DETAILS_OFF]*0.15),0) 

PHP Code:

IIf([Type]="Onlist",Abs([EP_DETAILS_ON]*0.15+[REF_DETAILS_ON]*0.2+[GEN_NOTE_ON]*0.2+[APP_LINE_ON]*0.25+[SPEC_INS_ON]*0.2),0) 

PHP Code:

IIf([Type]="Aged Report", Abs([EP_DETAILS_AGED]*0.2+[REF_DETAILS_AGED]*0.2+[GEN_NOTES_AGED]*0.3+[SPEC_INS_AGED]*0.3),0) 

View 4 Replies View Related

Tables :: Number Formatting - Comma For Thousands

Jul 15, 2013

I am trying to make sure that my double will have a comma for thousands, but will also be able to display more than 2 decimal places (probably 4).

I am struggling with what format to use - if the number doesn't have any decimal places, the point is still put in.
#,##0.####

Examples:
23.2 = 23.2
64587.255 = 64,587.255
5000 = 5,000.

View 5 Replies View Related

Formatting A Field

Apr 25, 2008

I receive information from an outside source that I put into an Access database. There is one field "Questions" that contains four separate items: Admit MD, Cardiologist, D/C Unit, D/C RN.

So, I pull the "Questions" field into my report and on my report it shows like this (one BELOW the other):

Admit MD
Cardiologist
D/C Unit
D/C RN

I would like to have this field show like this to save space on my report (one AFTER the other):

Admit MD, Cardiologist, D/C Unit, D/C RN


Is there a way to do this?? Thanks for any help.

View 6 Replies View Related

Help With Formatting A Field

Aug 23, 2004

I have a table with several records. I want to be able to give each record in the table a distinct identification number, I.E. record Number.

I want the record number to be formatted in a manner that when it is looked at it has meaning other than a series of numbers. I would like to have the record number represents the following: The first 4 numbers represent the building number; the building number is a field in the table. The next four numbers will represent a date (also a field on the table) day and month only. The last number (s) should be in sequence 1,2,3…base on the number of records.

For Example building 21 was inspected on August 23 we found 3 problems, so our primary key numbers would read 00210823001, 00210823002, 00210823002. And if we went to building 1255 on the same day a found 2 problems the primary key numbers would be 12550823001, 12550823002.

So, 1255 0823 001
1255 –building number from table field
0823 – from date field on the table (but only month and day)
001, 002…normal sequence of numbers.


Can anyone please help with this? I sure its probably simple but my Access experience is limited.

View 4 Replies View Related

Tables :: Get Rid Of Calculated Field In A Table?

Sep 13, 2013

I've learned the hard way about using calculated fields in a table. I used on while building in Access 2010 for users that will be using Access 2007. Once my testers pointed out the error message, I did some research and realized my calculated field was the problem.

So, I created a query to replicate the calculation, deleted the offending field from the original table and redirected everything to point at the new query vice the original table.

However, my testers are still receiving the error about needing version 14 to access that table. There isn't a calculated field there any longer, but they still can't access that table. Did that calculated field put some sort of taint on my database that can't be removed? I'm not sure what to do. Do I need to start over, so that a calculated field was never part of the database to begin with? If so, how much of my existing one can I reuse?

View 6 Replies View Related

Tables :: Timestamp For Table Field

Feb 19, 2014

I would like to have a time stamp for each record showing the creation time/date of the record. When following the description: [URL] ....

the outcome is, that each record shows the creation time/date of the record created before, which is not exactly what I want.I know this can be handled on form level (in the AfterInsert event), but I think it would be more elegant on table level. (Because obviously it has to be done in every form if there are multiple forms for the same table, and I it wouldn't work if somebody bypassed the form)

View 3 Replies View Related

Modules & VBA :: Add New Field In Every Table (100 Tables)

Apr 16, 2015

I inherited an old database. Not designed too well. Nearly 100 tables with different types of names. Some table names start with and "_", some with "tbl" and some just names.

I want to add a new field called "TimeStamp", date/time, and default value Now() to all the tables.

View 5 Replies View Related

Tables :: Rename A Table Field Name

Apr 18, 2014

I was working on my DB, cleaning up some of the field name that were cumbersome and everything worked fine. Today I was doing some follow up work and I cannot change the field names. All I want to do it change the name of a field from CITY to City, but it won't let me do it. I have tried, change from single click to double click, but I was already using double click to open an object; unchecked Auto-Correct, still nothing.

Yesterday I was able to modify a name from Actions to Action (simply deleting one letter. And State/Province to StateProvince. Worked fine. What bothers me is that I have been able to change a field name before and now I can't. I have tried compact and restore, etc.

View 14 Replies View Related

Tables :: Adding Value To A Table Field

Mar 20, 2014

I am building a DB for my college, it is needed to replace a spreadsheet they have in place. The spreadsheet is used to monitor and track Students grades.

Each unit a student passes gives that student a certain number of points, the number of points depends on the grade (e.g. a student will get more points for a B than they would for a C). The point of the DB is to input all the students grades so that student can see how many points they have.

I was wondering if there is a way to add a value to a field, so if I put in a field that a student got a B grade the database would know how much a B grade is worth points wise. Each field should be added together to generate an overall score. Is this possible?

View 1 Replies View Related

Tables :: Look Up Reference For Table Field

Dec 5, 2013

When entering a lookup reference to a table field it pop up message saying, "you can't modify the table 1 this time as it is in use by other person or process" i have closed all forms and table reports but the problem is same to rectify ? also when going to see the realationship then there shows no relation ship developed even after the lookup reference from one table filed to another table field.

View 1 Replies View Related

Tables :: Add Existing Field From One Table To Another

Apr 8, 2013

I am trying to add an existing field from one table into another table but the table Im currently in shows that option to be greyed out. What would cause that option to be greyed out?

View 2 Replies View Related







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