How To Update A Field Data To A Certain Mask?

Feb 2, 2005

Hi everyone,

I've been thinking of this for days.
I have a table field that contains SSN data. Unfortunately, during the data import from the legacy database, all the front "0"s had been truncated. The current DB SSN field is a text data type which can handle the "0"s at the front. The table has about 50000 records which unable to modify each individually.
I need to modify the SSN data back to fixed length by adding "0"s at front. I think it will put too much effort to write a VB app to do this. I prefer to do this through the SQL. Dose anyone know how to do this? Thanks in advance.

View Replies


ADVERTISEMENT

Double Input Mask For Data Field

Jun 30, 2014

Is it possible to set a double input mask for a field? I would to set it so users can eneter two different values for data field: 00/00/0000 or just the year 0000, is it possible? How do I do that?

View 1 Replies View Related

Problem Entering External Data From Excel Into Access Field Using Input Mask

Mar 5, 2008

Hi,

I'm new to this. I'm trying to enter data (it's actually Latitude and Longitude co-ordinates) from an existing Excel source into an Access database which has input masks of 00°00'00.00"L;0;0 (Latitude) and 000°00'00.00"L;0;0 (Longitude) in the respective fields. However I cannot get the information to import or display correctly. I did an "export data" of the respective table (hence fields) to Excel to try and get the correct entry format. An example of the Lat exported was 24°49'41.81"N and Long was 067°01'44.02"E (but with a very small ' in front but only visible in the data entry line in Excel, not in the actual spreadsheet table???)

However when I try to enter the data (even using the exact same little degree symbol, apostrophe, and quotation marks) it does not enter the access fields correctly. On closer scrutiny of the exported Excel format I note a small ' at the very beginning of the 24°49'41.81"N or 067°01'44.02"E string. But as I said previously only visible in the data entry line next to the formula button. Not on the spreadsheet cell.

However even when I "Paste Special" "values only" my new co-ordinates into the same entry location as one exported, it will still not import, or display correctly. If I go into the Access database directly there is a form where if I need to enter the new co-ordinates (using lat example above) I only have to enter 24 49 41 81 N (spaces between) and it will show correctly as 24°49'41.81"N

I'm getting desparate as I don't want to have to change all the details manually. Anyone know what my correct format from an Excel spreadsheet should be?

Apologies for lengthy story! Difficult to describe problem with degree symbols etc

View 2 Replies View Related

Update Field To Todays Date When Data In Other Field Changes

Apr 27, 2008

Hi

i have 2 fields in a form - 'Balance' and 'Date'. Quite simply I need the date field to change automatically to todays date each time the data in the 'Balance' field is changed. Can anyone advise me on how to accomplish this.

Many thanks

Geoff

View 2 Replies View Related

Update A Field Based On Data Entered In Another Field?

Jan 9, 2015

I am wanting to update data in one field which is being pulled in from another table based on an entry in another field in a form

Attached is the database. In the sales form I want to enter a customer ID which will then pull in the customer name from the customer table and put it in the Customer Field in the sales table.

I know I am duplicating the data by having customer name in both tables which is bad database design!

View 3 Replies View Related

How To Add A Field To A Mask

Jul 13, 2015

How can I edit a mask adding a field I have added to a table?

View 4 Replies View Related

Imported Data/ Input Mask

Aug 22, 2006

Hello there,

In Table A I have a field called Pin Number.
I set an input mask for this field, Pin Number.

Now I have imported a huge number of records into Table B from Excel which also contains Pin Numbers.

I need to link all fields with Pin Numbers, so my question is:

How can I change newly imported data fields to conform to a previous input mask?

many huge thanks, :)

View 2 Replies View Related

Input Mask To Change Data

Sep 13, 2007

I have excel spreasheet that have dates on them. But the dates are formatted as general so they are really only numbers to Access when I link the spreadsheet to a table. I was hoping that I could create an input mask that would make Access recognize that the numer 20070912 is really September 12, 2007. I can't change the structure of the spreadsheet because the data comes from a data service. :mad: But maybe I can translate this number into a date in Access? Can you geniuses help me create either an input mask or some process besides using:

transdate:
DateSerial(Val(Left([ddate],4)),Val(Mid([ddate],5,2)),Val(Right([ddate],2)))

to change the number into a date? I was hoping that I could just create an input mask yyyymmdd and then Access would recognize it as a date, but it seems more complicated than this. I need to use the date() function for further analysis so it has to recognize the number as an actual date. Thanks for your help.:)

View 1 Replies View Related

Mask A Field In A Form

Dec 26, 2006

Access 2000
Table tbl_TEMP
Table tbl_TESTS
Query qry_TESTS
Form frm_TESTS

There are 10 records in tbl_TEMP. Form frm_TESTS shows each record. My user makes changes to the record and clicks an “Accept” button, which excuses a VB script that appends data from tbl_TEMP into tbl_TESTS. That all works perfect.

There is a general text field in tbl_TEMP that will become a Social Security masked field once transferred to tbl_TESTS. Right now if someone attempts to accept the test and the [ssn] field is not truly in the proper mask of xxx-xx-xxxx then it will look as if it is appending the test, but it truly does not copy the record.

Can I add a warning somewhere that makes them change any text in that field to the proper mask?

So ex: if they see “123456” in the [ssn] field in the form they must change it to “123-45-6000” or any other system they choose to fill it in, but make it where they much change it before they can “Accept” the test?

Thanks.

View 10 Replies View Related

Entering Data Into Input Mask - Frustrating

Dec 2, 2006

Hi guys,

not sure which section to post this so i hope here is ok...

ive made an input mask for a postcode field. problem is its really annoying having to click the beginning of the field to enter data in the correct area of the input mask. Is there a way to automatically set the cursor to the beginning of the input mask/field when it is clicked?

thanks, James

View 3 Replies View Related

Change The Input Mask On A Field

Oct 10, 2006

say I have a drop down list to declare a data type, is it possible to update the input mask for another field based on this data type?

Example:

Input Type A : 000/000/0000
Input Type B : 0/00/000/0000

Seems simple enough with some VB If Then code, I just have no idea how it would be done, and my searches have been ineffective.

Thanks for any help.

View 1 Replies View Related

Add Input Mask To Video Field

Oct 14, 2015

I am trying to add an input mask to my video Field, so that it is always enter correctly. V-1-2015, what I have so >"V-"099-0000, but it is showing spaces if nothing is inputted for the 99 fields, if I add in !>"V-"099-0000 it then removes those spaces since those are optional characters, but then the V is no longer capitalized. How can I correctly have an input mask that keeps the V always capitalized and have mandatory fields and optional fields without spaces. I want it to come out as V-1-2015, or V-11-2015 or V-111-2015.

View 11 Replies View Related

General :: Data Input Mask And Expiry Message?

Jul 12, 2013

I want to have an input mask on an 'Expiry Data' Field so that the input method is 'MON-YY" and I need access to realise it as a data. And then I also need when a user opens a record an anything that is 2 weeks from expiring I need an error message to pop up.

View 1 Replies View Related

Creating An Input Mask For A Currency Field.

Jul 28, 2005

I would like to know is there a way to create a mask on a form for a currency field? I don't want a user to be able to enter in like 125.145. I just want to make it so that people can only type in 125.14. Or how can I write VB code to give a warning when a user enter in more than two decimal places.

Many thanks.
Dave

View 1 Replies View Related

Creating An Input Mask For A Currency Field.

Jul 28, 2005

I would like to know is there a way to create a mask on a form for a currency field? I don't want a user to be able to enter in like 125.145. I just want to make it so that people can only type in 125.14. Or how can I write VB code to give a warning when a user enter in more than two decimal places.

Many thanks.
Dave

View 2 Replies View Related

Date Time Field Prompt Mask

Feb 6, 2008

I have a field that is a Date Time field (mm/dd/yyyy hh:mm:ss) and I would like to prompt the user for a begining date range and ending date range. I know how to prompt the user, but I would like for them to only key in the Date portion and not the time. Can anyone offer any suggestions on how to handle this? Thanks

View 1 Replies View Related

Reports :: Cannot Find Where Field Is Having A Mask Applied To It

Sep 9, 2013

I have a field in a table called [PostalCode]. It is a Text field.

I have a report that used the [PostalCode] field. This is a report in a template that I downloaded from Microsoft.

If I enter "1234" in the field in the table, it looks fine in the table.

If I use the field in the report, it display as "1234-"

If I enter "1234567890" in the field in the table, it looks fine in the table.

If I use the field in the report, it display as "23456-7890"

I do not want any mask whatsoever and just want the value to be displayed as the user enters it.

I have looked at the properties of the field and there is nothing setup, I looked at the properties of the Form that edits the field and there is nothing also.

If I look in the actual report I see the following bit of code ,it is the control source for the Text box that is used to display a number of fields including [PostalCode]:

=DLookUp("[Suburb/City]","My Company Information") & ", " & DLookUp("[State]","My Company Information") & " " & Format(DLookUp("[PostalCode]","My Company Information"),"!&&&&&-&&&&")

View 6 Replies View Related

Query To Update Data To Foreign Key Field?

Jul 1, 2007

I've sent a post about this before and got some of the answer from 'Dennisk'- thanks.

I want to replace composite keys with a primary. I've just made an autonumber field on one table for my new primary key and already populated it. On the foreign table ive made a new field with 'number' datatype; this field is empty at the moment.

I'm not sure how to update the foriegn tables new field with the primary tables data. I've saw it before and remember it being easy, just can't remember how to do it.

I obviously want the numbers in the primary key field to relate to the correct records in the foriegn table.

Anyone know what the query is or if there's another way?

Thanks:confused:

View 1 Replies View Related

Update Data From One Table To Another Only If Field Matches

Aug 28, 2014

I have to two tables and I was add data to second table only if the field matches. Lets I have two fields site and recid on both and I want to update site on the second table only if recid from the first table matches the recid from the second table.

View 1 Replies View Related

Input Mask Data Not Working In Make Table Query

Jan 30, 2007

I have data recorded using an input mask,
"RF">L-0000;;*
to display data in the style: RFA-0001, RFA-0002 etc.

I have a make table query to join this field to another, to create a combo box look up.

Unfortunately, after I run the query, the only data from the input mask that gets imported is A0001, A0002 etc.

What have I done wrong? I guess the error must be in my specification for the input mask...

Any and all help gratefully received.

View 4 Replies View Related

Tables :: Input Mask For A General Date Field?

Feb 8, 2013

I need an input mask for a general date field. When I add the date "11/01/2012 10:00:00" it works fine.

When I add an input mask of 00/00/0000 00:00 it then doesn't work.

View 2 Replies View Related

Tables :: Access Input Mask For Text Field

Nov 8, 2014

I'm trying to set an input mask for a text field.

The data will be 1 to 4 digits preceded by 1/

I have tried the masks 1/####;; , "1"/####;; 1/####;; , "1"/#### , '1'/#### but none work as if the first nubber entered is a 1 it replaces the 1 in 1/

If it is a 2 then it works fine.

I can set the 1 to and f (f/) and it works no problem.

View 2 Replies View Related

Input Mask For First / Last Name Field Where First Letter Capitalizes Automatically

Apr 3, 2012

I'm very new to access and i'm trying to write an input mask for a first/last name field where the first letter capitalizes automatically. Is the input mask the correct avenue and if so how do i write it? I can make the first letter caps through the > and continue but i'd like for the rest to continue on indefinitely as to not restrict the length of the field.

View 2 Replies View Related

New Recordset's Memo Field Data Lost On Update

Feb 29, 2008

morning

i am adding a new row to an adodb.recordset, one of the fields being a Memo datatype.

all the other fields will write to the database fine, but with the memo, it will mysteriously disappear when i call rs.update

response.write(rs("my_memo_field")) 'give correct output
rs.update
response.write(rs("my_memo_field")) 'gives nothing!

any one else had this happen and have a solution?


cheers

View 2 Replies View Related

Queries :: Update Query To Replace All Data In Field

Apr 8, 2013

Is it possible for an update query to simply replace all the data in a table's field with the results from a query?

For example, I have Table A with the field Years. This table performs various calculations within based on the field Years.

I would like an update query that simply replaces the Years field data in Table A with a new set of years based on a query's search criteria.

When I run the below query, I get an error saying the query must be updateable- but Im not trying to update the query, rather the Table

I've attached a photo ......

View 1 Replies View Related

I Need To Update Data In A Table With Information From A Calculated Field In A Form

Oct 12, 2006

I've read over and over that calculated data is bad, that's fine with me... but here is my dillema...

I have four fields that interact with my calculation in a single form. There is only one table in the database.

AmountF (The stored data in the table) (amount financed)
FC (calculated by =[amountf]*.25) (finance charge)
Amount Paid (used in calculation of total due)
total due (calculated by =[amountf]+[fc]-[amount paid])

The math already works, everything works. I can choose to print the form and it looks great. However, I would like for it to (when I'm done printing the form) somehow save the total due data to the AmountF column in the table. AmountF is in the same line as all the other information, so I would like it to not create a new record just update the old one.

All four of these fields have a text box in the form for themselves.

View 4 Replies View Related







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