Reformatting Data Type
May 25, 2006
OK, i'm getting a type mismatch. I've tried searching for that and read a lot of posts, but none hit the nail on the head.
I know where it is. I am trying to link two table by using a field which is a string in one to link to a field which is a number of some kind in the other. I can;t change the formats of these as it's a query i'm running on a database i don't control. I understand I need to convert the format of one of the fields in a query and then link using that, but when i try to reformat the number it doesn't do what i'm expecting after reading the help.
in the help it suggest using this:
Format(expression[, format[, firstdayofweek[, firstweekofyear]]])
So i'm trying to use that to reformat the string field to a number so i can use that query.
Numbers: Use predefined named numeric formats or create user-defined numeric formats: This is where i fail completely!! it just rejects everything i write in my query.
View Replies
ADVERTISEMENT
Aug 27, 2007
Hi all,
I am putting this in General because, frankly, I have no idea where it belongs.
I have a table that looks something like this:
Serial...Part.....Batch
1001......1.........A
1001......2.........A
1001......3.........B
1002......1.........A
1002......2.........B
1002......3.........B
1003...
How can set up a form, or a new table, or something so that the data is displayed like this:
............1.........2..........3
1001......A.........A.........B
1002......A.........B.........B
1003...
You see what I am trying to do? I am trying to make the Parts a column header, and kind of remove Serial/Part/Batch titles.
My first instinct was to take it into Excel and make a pivot table out of it, but that doesn't seem to work? The pivot table keeps counting up everything, and I don't want anything counted, I just want all data displayed.
Can anyone help? Thanks in advance.
View 4 Replies
View Related
Jan 23, 2013
I am using a template that I downloaded off of MicrosoftOffice.com. I really like the setup but I need to make a few modifications to it, but the modifications I want to make I can not do due to it being a web-based(I think). I am a newbie to access and I am slowly learning about macros, vba codes, formatting, and what not.
View 5 Replies
View Related
Nov 3, 2012
I have a table with a field with names set to text data type and i want to change it to number data type but when i do it in design view the data get lost. I want to know if there is a way to convert the data in the field as number type and keep the data in the field.
View 7 Replies
View Related
May 29, 2007
Hi,
I have an address field currently formatted 1 Streetname, city, post/zip code it is displayed on a form within a multi-line textbox. I'd like to change the commas to a line return so it will display
1 streetname
city
postcode
I was thinking that a small macro might go through each record and change the comma to a line return? But not sure where to start exactly?
many thanks in advance. Harry
View 3 Replies
View Related
Dec 7, 2006
Hi
I have a table with postcodes (1.6M rows) that have had all the spaces removed. I want to match another table to it and ordinarily would have removed the spaces from the postcodes in that but I think because of the vol (2.5M rows) Access is reluctant (it either crashes or only updates a few thousand).
A better way would be to reformat the postcode using some SQL or VBA code. The trouble is the postcodes are different numbers of characters and the space would either need to be after the 3rd when there are 6 characters or after the 4th when there are 7 characters.
eg PO121DL becomes PO12 1DL
PO91UL becomes PO9 1UL
I can concatenate fields and count characters but am unsure as to the best way to approach this in terms of coding and structure? Using Access 2002.
Any thoughts/tips etc would be appreciated thanks
View 2 Replies
View Related
Mar 26, 2008
We have imported an Excel spreadsheet with dates in one column that were imported as numbers such as '39287', which can also be displayed in Excel as July 24, 2007. We concatenated this import to a table where all our dates are stored as 20070724. Now we have both formats in one column, with over 70,000 records in the 20070724 format and a few thousand in the Excel format. How can we convert the fields in the Excel format to the appropriate YYYYMMDD format we use?
Many thanks for your help, we can find a good way to clean this up...
Genevatexan
View 4 Replies
View Related
Apr 15, 2013
what I want to do is make a button to search range of columns in data table with data type Yes/no and display the results if the value is yes
View 9 Replies
View Related
Oct 23, 2013
I have a field in a table that is comprised of mostly numerical data but some records are text.
I want to convert this field to numerical only and make a new field to put the textual data in.
However converting the field will delete the textual data. What is the easiest way to convert the field but save the textual data AND append the textual data to the SAME record that they were in originally in the new field?
View 2 Replies
View Related
Oct 2, 2006
I’m not an expert in Access and hope that someone can help me with my problem. I have about 20 fields of Yes/No data type.
E.g.
StudentID- Tex
Science – Yes/No
Math – Yes/No
Biology – Yes/No
Chemistry – Yes/No
Economics – Yes/No
...
I would like to create a parameter query (without using form combo box) where when I run the query, it would prompt me for the subject name. Let say I keyed in Science, it would list out all the StudentsID who took up Science only (with a Yes) and the other subjects.
Pls help.
Thanks.
View 1 Replies
View Related
Feb 16, 2014
I want to input data number such as 0.5 in my table, but it doesn't work. I already fill field size : integer with format : Standard with Decimal : 2, but the result is always 0.00 not 0.50 as my expectation. How to define that in my table?
View 5 Replies
View Related
Mar 19, 2007
When exporting a table to excel is there anyway to presever the data structure - ie a text field of length 30 will only take text length 30, Interger would only take integer and date would only take date etc, etc ,etc.
View 1 Replies
View Related
Feb 21, 2006
Some fool has chosen number for a date column and the date data show up like
8031976
12022001
If I just change the data type back to data, it's going to delete a lot of them.
Is there a way to make the change and preserve my data?
Thanks in advance.
View 1 Replies
View Related
Mar 5, 2007
Hi,
Trying to get back into Access after a long time, just need some refreshing :) tips.
I have 2 tables, one of the tables stores titles (mr, mrs, etc). I tried using the 'lookup' data type to link the data from the other table. This however stores the field as a number and causes problems on my form as only a number is shown rather that the text.
What do I need to do to resolve this? :confused:
Thank you.
View 6 Replies
View Related
Feb 20, 2007
I have a rich text editor that I want to use to post HTML to an access database field. The average post will probably be four hundred or more characters. What is the best Data Type to use for this. I am looking at going with Memo but I want to be sure.
Thanks in advance
View 1 Replies
View Related
Feb 2, 2006
Hi,
How can format proper display for percentage values. What happens is I chose a field as percent, but if I put in 9 meaning 9 % I get 900% as the value is multiplied by 100, but if I put in 0.09 I get 0%.
I just want to put in day 9 and be saved as 9%.
thanks
dfuas
View 4 Replies
View Related
Jun 29, 2007
hello people, i wanted to add a string at the end of a long column of Currency. Is there any to to change only the last field to a string or do i have to change the whole column just for the last field?
View 2 Replies
View Related
Nov 10, 2007
I'm using Access 2002 and need to increase some field sizes, some by increasing the maximum number of characters and others by changing from Text to Memo. When I try to do this I get the message "Microsoft Access cannot change the data type. There isn't enough disk space or memory"
I have two 320GB hard drives and 4GB of RAM and the Access file is a mere 280MB. Can anyone please explain the problem and tell me how to achieve my objective?
Roger
View 6 Replies
View Related
Nov 30, 2004
I have a field called 'Discount' in my table called 'Bill'. I set the data type of the Discount field to 'Number' along with..
Field size: Long integer
Format: currency
But my problem is, when i type in, for e.g, £4.50 it changes it to £5.00. It keeps rounding it up to the nearest pound. How can i stop this happening?
View 3 Replies
View Related
Feb 14, 2005
I have a DB that was given to me with a SSN field that has the Number Data Type. Therefore, if the SSN has a zero as the first number, it is not coming up. Other than changing data type to Text, is there a property that would keep the initial zero? Thank you for your assistance.
View 2 Replies
View Related
Feb 18, 2005
I have inherited a table where the data type is binary in some cases and I want to change these to Numerical. When I do this in design, I get a message which says I can't do that. I have something like 200,000 records.
If I try to export as Text file I get Invalid Argument message coming up. Can anyone help?
View 2 Replies
View Related
Jul 12, 2005
i am creating a database that will include four (4) tables that need to have an autonumber as a primary key, but i need that autonumber to be preceded by a letter (one letter for each table). i am creating forms for the users to based on these tables for users to enter data. please help...i'm running short on time. thanx!
the database i'm creating will be used to store city issued permits. there a 4 different types of permits that can be issued, some w/the same info (i.e. contractor, owner) and others with different data (certain permits are only issued for a specific # of days, others require a tap or meter size, etc.). i have separate tables for the contractors, owenrs, and payments, but each payment needs to be associated with a particular permit #. for example: check #3 from john doe contracting is associated with permit # m123, or h123, etc. that's why i decided to have a separate table for each permit type. i was attempting to avoid data redundancy. i also need separate forms for the users to enter data into as per their request. i'm open to suggestion if you have some other ideas. thanx in advance. :confused:
View 3 Replies
View Related
Apr 27, 2006
I have a table that i need to be able to store text that may be over 255 characters long. I have changed the fields datatype setting to memo as I thought this was able to show Up to 65,535 characters. But the data is still being trimmed to 255 characters. I have looked in Access help at data types and it states that the memo field length is 65,535 characters
"if manipulated through DAO and only text and numbers [not binary data] will be stored in it, then the size of the Memo field is limited by the size of the database."
My question is?
How do I know if it is manipulated by DAO
If it is not manipulated by DAO how can I change it (if possible) as I really need to full data to be retained
I am using Access 2000
Thanks for any advise
View 5 Replies
View Related
Jan 26, 2007
Does anyone know if its possible to change the data type of a field from "Text" to "Number" by using a macro?
thx
View 1 Replies
View Related
Apr 19, 2007
Hello everyone, I am buiding up a database for activity school. Here first step of buiding the base, I got an attendance data type problem. i am now using "yes/no", but if i want to query about the number of student each class, is that possible?
Thank you for your help.
View 5 Replies
View Related
Jan 16, 2008
I am using Access 2007 and I am trying to create an attachemnt type field in a table. Yet when I select the types of Data Types, attachement is not an option. Can you possibly tell me why?
Thank you
View 4 Replies
View Related