Yes/No Field Type.
Sep 29, 2005I have a field defined with a Yes/No type. When it appears on the form instead of showing up with a Box with a checkmark, it shows up as -1 or 0. Any thoughts as to what could be the problem ?
Thanks.
I have a field defined with a Yes/No type. When it appears on the form instead of showing up with a Box with a checkmark, it shows up as -1 or 0. Any thoughts as to what could be the problem ?
Thanks.
From a table I want a text field which has a path to a file to be copied automatically into a another field of the same table with a hyperlink text type...
View 5 Replies View Relatedhello 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 RelatedI have a query to go through a table and pick up the amount of money earnt during a period then I use that field to calculate commission, but the commission field just shows up as numbers and not as currency as the set field in the table does.
Is there anyway in SQL to say what sort of data type a field should be...
Example of sql string
SELECT Sum([Work].[Earnings]) AS [Period Earnings], [Period Earnings]*(17.5/100) AS [Commisssion] FROM Policy
Hi Everybody,
I have a database in mind but I will need a new field-type that would contain an image file. I don't care if the image format is jpg, bmp, or gif or whatever.
Can I store any image inside an access database, and if so how do I do this? Hopefully, I can have an inventory database that would also contain an image of each record in the database. ( I hope to store the actual image in the field, rather than "file-path" pointing to a directory full of actual image files )
Regards,
-Paul-
I have been researching changing the field type of a table to Hyperlink and have been unsuccessful.
Everytime I add a field to a specific table the hyperlinks get busted. What I am doing programmiticaly is:
1. Deleteing the field
2. Re-creating the Field (text)
3. Concantonating two fields into the new field
4. Create a second field (hyperlink)
5. Copy those recrods into the hyperlink field
6. Delete the first
7. Rename the hyerlink to the original feild name
I get this to work but the hyperlinks are still broken.
Programmatically:
If I Create the new field
Concantonate two fields into it
Then Manually Change the field name from Text to Hyperlink
everything works great.
QUESITONS:
WHAT CODE is being run whern you go into the properties of the table and change the field type from Text to Hyperlink?
Can I use that code for this purpose?
Hi,
I created a field of type number and formatted to display percentages; however, it seems to add two zeros at the end of every percentage I enter. e.g. if I type 9%, it will show 900%.
Am i doing anything wrong here?
Any help will be very much appreciated.
B
Hi,
I have searched on this and it says: it doesn't matter as long as it's of type text. It matter if it's long integer..etc. I am not quite sure.
I wonder if default size '50 of fields' of type text occupies that size in memory even though the data in the field is not 50 chars.
Regards,
B
Have an odd problem that eludes me at the moment I have table with a text field for surnames and if I type the surname Ballance into the table it automatically reverts to Balance can see no logical explanation for this at the moment funnily it does exactly the same in excel
View 3 Replies View RelatedAccess 2002/2003. I have inherited an old Access 2000 database where one of the fields in the table had a Number data type with TEXT in it. I noticed the wrong data type and I change it to text. All appeared OK until I attached a combo box to this field. When clicking in or opening the combo box in any row in this table with the old text, I get an error message: "The value you entered isn't valid for this field. For example, you may have entered text in a numeric field or a number that is larger than the FieldSize setting permits." This field has about 3,000 records in it, and it appears to be corrupted and a permanent numeric field, I have tried everything to fix it: Compact and Repair; Import, append, and update this field into another table/field and I cannot get rid of the error message. How do I get that Number field finally and completely converted into a TEXT field? Anyone got any ideas? Thank-You! :o
View 1 Replies View RelatedI have a field which is formatted as currency. When a button is clicked, it shows the value of the field. Because it is a currency field, if you enter "10", it is immedatly changed to "£10.00", although when i use txtAmount.Value, it gives me the "10" value. This is especally a problem if pennies are used - if someone enters "15.10", the .Value reterned is "15.1", which makes it seem like "15.01" has been entered. How can I get the currency-type value form the field?Thanks for any help.
View 4 Replies View Relatedhi,
I have atable with fields time in and time out (short time type), in aquery i did a diffrence between that to fields, so I can know to evry employee every day how many hours work.
but, my problem is how do summation to the work hours to the month (it's a short time type).
example, an employee work from 8:30 to 15:00 in the first day, second day work from 9:10 to 14:20 ....etc
at the end of the month i want to have report from query which give me sum. of hours the employee workes.
thanks to help me
suhad
i have a temporary table which is created by importing an excel file
some extra fields are then added to the table using sql vb code for example
strSQL = "ALTER TABLE [TBL_TmpSubmission] ADD COLUMN [EnergyUnit] TEXT;"
CurrentProject.Connection.Execute strSQL
these fields are later populated conditionally using an update exectuted again from vb code
If Me.cboProgram.Column(0) < 3 Then
strSQL = "UPDATE TBL_TmpSubmission SET EnergyUnit = 'GWh'"
Else
strSQL = "UPDATE TBL_TmpSubmission SET EnergyUnit = 'CarbonTonne'"
End If
CurrentProject.Connection.Execute strSQL
the problem is that this field now has a memo data type, this is a problem because i need to write a query which uses this field in a table join and access won't let you join on the memo type
anyone know why this might happen? for the time being i'm going to try and fudge this by using a further ddl statement to change the data type back to text but i'd rather know whats going on here
happy friday to all! I may just be missing something simple here but not sure what. I have a form with an option group of radio buttons, an unbound label, and an unbound text field.
If radio button A is selected, the the label and the text field become visible. no problem with this.
when they become visible, I want to be able to enter a string into the unbound text box, and use that data to populate a query from. I know how to do this also.
No the problem: when the textbox becomes visible I can't type into it?
Any thoughts?
Thanks
Kevin
I have an order table [OrderMain], which contains [OrderNumber] "Auto Number" along with various customer related only info
Then i have a order line table [OrderLines] which contains the items ordered. Which looks like
OrderNumber
OrderLine
PartNumber
These tables are in a form, relationship of [OrderNumber]
This structure enables me to order as many parts as i'd like against 1 order number.
What i would like to do is set something similar to a auto number in the OrderLines table. This would be in the Lines Field.
The problem is, AutoNumber can't be used in the [Lines] field as each new order line # would continue from the last #.
The result would look like:
I need a field to permit only numbers. Upon selecting number for the data type I select Long Integer for a longer number... But it only allows 9 digits.. I need it to allow to enter in longer numbers... Any help?
Thank you very much in avdance
I'm a bit of a newbie, so lets just get that out of the way....
I have a field in a table that was originally a text data type. I want to change it to a "lookup" data type using the lookup wizard. However, Access doesn't allow me to do this and prompts me with "You can't change the data type....its part of one or more relationships...". But there are no relationships? There may have been previously, but I've deleted them all from Relationships window.
This has happened several times now. I am in the process of designing the database and have been changing my mind about data types when I realize that I can use a lookup data type. The only fix I have found is to make a copy of the table in question and then change the data type of the problem field. Unfortunately this screws up my forms...which is a pain.
Why would Access say that there are relationships in the relationships window when in fact there are none?
I've attach a copy of my db. The field in question is located in the "Activities" table. The field name is "ACTIVITY_NAME". I am trying to use a lookup from the activityNames table using the "ActivityName" column.
Thanks for any help in this matter.
Hi all,
I have a question about an Access form that I am creating. I have a "Due Notes" field, which has Memo data type and I create a form "Estimates" using a text box with the control source is that "Due Notes" field to enter notes when needed.
Although I have the vertical scroll bar for that text box (due to other controls, I can not size the text box too big), does anybody know how to display that text box in form "Estimates" with the data of the last text within the size of the box without scrolling down so I can start typing for the next entry? Do I make sense to you?
Please help and let me know if you know HOW. Thanks so much in advance.
How the value is stored on a Yes/No check box in the table. I need to check to see if it is checked to perform some calculations.
View 8 Replies View Relatedi have multpile yes/no check box i want if i check on one the name of this check box is written on another one.
so i neeed a code for loop of check boxes and i need a code i.e loop all check boxes if any is true then put name field in {new field}
hi friends,
i have tried had to connect sub type tabels (Saving, Checking, Loan... they have their own ids...) with super type (Account...it has account id...) on the condition of account_type (either "S","C" or "L") attribute in ACCOUNT entity.
how to joint them??? with query or with expression??
i expect help from you.........please.
........thanks.
:confused:
Hi,
I would like how I can generate automatic Id in a table with following structure. billid number, billdate date& time.
I don't like to use AutoNumber built in feature.
Regards.
Soumen.
I wanted to create a field lookup with values that I specify, not on the table sheet, but on the form. User can click on a text box or combo box and can select a list of value that I specify, not values that are listed on a table but ones that I type in, in the form.
View 11 Replies View RelatedIn my database i have a field for Tonnage (quantity) ...
I need for example to input 38.60 or 37.89 so my values must have 2 decimal places, ive searched and found changing my field type to double or decimal should solve the 'numbers rounding up/down' but access will not let me change the data type?
I got Gross Income Query. But I have employees that have overtime rate as well
So I have to calculate using overtime Payment And Gross Income Separately
So I make query and in query . I write this equation
Ovetime Pay: IIf([Total Hours Worked]>[Normal Hours/week],([Total Hours Worked]-[Normal Hours/week])*[Overtime Payrate],"0")
I successfully calculate it ...
BUT IT JUST GIVE ME THE VALUE LIKE A NUMBER SUCH AS e.g. 50 ,150 but instead of that i want currency data type of that calculate field for e.g. 50 become "$ 50".
Okay so in able to do that i go to properties Sheet of the field of the query and change Format to Currency ..BUT IT DOESN'T CHANGE !!!
DATABASE PAYROLL - Copy.zip
what do I do so that when I type into a field the first character becomes an Upper case automatically.
View 1 Replies View Related