i know, i know, this is probabley the simplest thing, but my brain seems to have gone on vacation. please help. i have an unbounded textbox on a form. and need to make it required. i don't want the user to be able to leave the textbox (insertation point) before they enter a value. i can get it to prompt user to enter data, but the cursor moves to next control. how do i get the insertation point to stay in textbox.
hey i need help in form validations i have to deliver this project by tomorrow and i can't find anything about validations in sites, or what i find is not useful to me.
i need to validate the field size of each field so it pops up a message when it exceeds that limit. what do i have to type in the validation rule ?
also i need to validate the kind of value each field can accept. i want the number fields to accept only numbers and the text fields only text.what do i have to type in the validation rule ?
I have a field in my Customers Table that is a Number type (to record the percentage level of interest). In the Validation property I have <=1 And >=0 to shows percentage. However, I would also like the entries into this field to be limited to increments of 10, such as : 0%, 10%, 20% etc; to 100%. How to correct Validation Rule to only allow increments of 10, and also the Validation Rule (<=1 And >=0) required to show percentages?
I have to assign multiple table validations to my table but they are not even working separately.
1) I have two combo box controls: [Tocolytics] & [multiple_Tocolytics], 3 check boxes and 1 text box.
Rule: IIf(([Tocolytic?]="Yes" Or [Multiple Tocolytic?]="Yes"),([Indomethacin]=True Or [Nifedipine]=True Or [Nitroglycerin]=True Or Len([Other])>0),"check one of the boxes")
2)Two combo boxes The answers are mutually exclusive. If one is yes then the other must be "No" or "unable to determine"
Rule: IIf(Oxytocin Infusion - no PPH]="Yes",([Oxytocin Infusion - if PPH]="No" Or [Oxytocin Infusion - if PPH]="Unable to determine"),[Oxytocin Infusion - if PPH]="Yes")
Hi: There are two textboxs in my main form. One is bound and another is unbound. There is no entry in the unbound textbox as values come into automatically after entering some information in the subform. My question is how to i pass values from unbound textbox to bound textbox every time when the value change in unbound textbox i need to change the value in the bound textbox. When the form load there is already value in the bound textbox which i want to override based on the values from the unbound textbox.
I have a date textbox (Week_Ending) and number textbox (Staff_ID) in a form (frmHourEnter), when both have values I open another form (frmStaffReport) with textboxes (txtDateStart and cmbStaff).
How do I open the second form with the values of the first form pre-entered?
I have a database for billing. In my database, I have a form that consists of a main form "Order" and 2 subforms "OrderDetails" and "Customer" OrderDetails are to enter the products to be connected to the Order. All function super, but I want to have some information from one of the forms "copied" over to on of the others.
Here is what I would like
In the subform "OrderDetails" I have made a textbox that summarize all prices to a total, his tekstbox i called "Tekst31". I would like the amount in this textbox to appear in a field "Bel�b" in the main form "Order".
I have tried some different commands, but nothing has worked, also I have made a query which dose the same ting as the tekstboks, as the information in that tekstbox it not stored anywhere.
I have a text box on 'Forma' & a textbox (named text3) on 'Formb'. I want to copy the contents of the textbox from 'Formb' to the textbox on 'Forma'. I have used the following code in the textbox on 'Forma'....
=Forms![Formb]![Text3].text
This doesn't seem to be working whether both Forms are open or only 'Forma'. Could somebody please advise as to what I am missing. Your assistance is very much appreciated.
I have created a form using access 2000. So far, this form already has data and dates in a combox in this format: mm/dd/yyyy.
In the AfterUpdate of the date combobox, I did this:
If graduation_date = #2/1/2004# then Text_Graduation_date = "dated this first day of february two thousand four." End If End Sub
In addition, I have defined many other dates as well using the code above. It works well when I choose the date form the combobox, the other textbox populates, but there are so many more dates in the combo!
Is there a way to auto-populate the textbox with the appropriate text as I scroll through the form?
I currently have two froms, "add record" and "add record cont." The reason I have two seperate forms is because when clients create a new record information needs to be saved to two different tables and when creating one from with fields from both tables I ran into many problems. The two tables are named : tblMain, tblFileLoc Currently there is a textbox on both forms named "fileID" the FileID in the first form is from tblMain and is the primary key for that table, the FileID on the second form "Add Record Cont." is just a normal field. When clients enter in the new FileID in the first form "Add Record" and then move onto the next form "Add Record Cont." i need access to bring the entered FileID from the first form and Fill it in the FileID field in the second form. Currently I have tried making the control source for the textbox on the second form = the textbox on the first form but it brought up an error.
I have created a form with various textboxes. In one unbound textbox called Graduation_date, I input information and this is reflected in another bound textbox called text762.
However, as I scroll through the form, the information that is to be reflected in textbox 762 disappears.
Any ideas on how to apply the information entered in Graduation_date textbox to all?
Suppose i have one form in which i have one more form pasted. when i tab off the textboxes of first form, i want the tab to go to the textboxes of another form. At present, it goes back to the first textbox in a form instead of going to the first textbox in subform.
This might be really easy to do but I don't know how. I want to create a textbox that will accept unlimited characters. The highest it can go is 255, I want it as a comment area where the user can type in as much as they want w/o being warned that they've reached their limit. Does anyone know how to do this? Thanks
Hello guys I have a report that bring total training by employee [Sum Of Duration] and is working fine, my dilemma is that I want a new [Text Box] that If employee have from 1 hour to 40 hour total a [text Box] to say "Legible for Bronze" if 41 to 80 "Legible for Silver" I don't have any idea how to me this source code
I have a small yet important question to ask. I have a text box on a form, that text box accepts a product number that the user wants to modify. I want to be able to do the following:
- If the product number does not exist, prompt with an error message (this part is not a problem). - If the product number does exist, populate the text boxes on the form with the respective data. ex: Product number 512547. Does exist, hence: (TB = textbox) Prd. No.TB = 512547 Rec'd Date.TB = 10/10/2006 Comments.TB= blah blah blah, etc. I am simply trying to pull information from a table into text boxes on a form using a text box.
I have 2 txtBoxes and a button (txtA, txtB, btn). When opening the form I fill in txtA and txtB. Now when clicking on the button "btn" (OnClick event), the program is supposed to compare the values in the 2 txtboxes. If they are equal (txtA=txtB), then I have to do something which is not relevant to my question. In the code I type:
if (Me.txtA.Value = Me.txtB.Value) then ' DO WHATEVER End if
and it does not even go through the conditional statement if to do whatever I want the program to do inside the if. I would really appreciate anyone's help.
Thank you very much PS: By the way, thank you boblarson and rainman89 for the past question, both solutions worked, I used boblarson's but I have to click on the form when it's opened in order for the changes in the table to take effect.
My problem is the following: My application needs a log in. Then I created a username and a password textbox. In the password textbox I applied an input mask to not display the password on the screen, and display the stars. The problem comes when i try to read the value by code. I get the stars instead of what the user wrote.
What's the solution for it? I'm sure i'm missing something, and i should write a method to get the real value, but can't figure it out...
I have a SQL query in a string of a VBA procedure (e.g. MyQuery = "select sum(Amount) from Investment")
and I want the result to be shown in a TextBox of my form Me.
I know several ways to run the query and to send the result into the TextBox (e.g. with QueryDef and RecordSet). However I guess Access should offer a more direct way to do such a simple operation.
Does anyone has a solution to do it the simplest way ?
Can anyone tell me what i'm doing wrong with this insert statement?
INSERT INTO TBL_PROCESS_NAME VALUES( ' & [Forms]![frmIntroduction]![txtProcess_Name] & ' )
the form is loaded when the query is run, i've tried taking out the & and the ' but to no avail, all i get in the table is [Forms]![frmIntroduction]![txtProcess_Name]
How in the world can I accomplish this? I have a set of dates on a form that change from week to week. I'd like to reference these text boxes in a query as column names. How can I do this?
I have several databases created and I am wondering if anyone knows of a way to have a textbox that would act as a search field instead of the Access pop up search that you get when searching a field. I would like to set it up that the search would be for Primary Key only. Is this possible or do you have to use the standard pop up search?
So I have a checkbox in a subform that if a user checks then the address info from the main form should be transferred to fields the subform. Here is my code:
Private Sub Check5_Click()
If Check5.Value = -1 Then add.Text = Me.Parent.add.Text '* city.Text = Me.Parent.city.Text prov.Text = Me.Parent.prov.Text postal.Text = Me.Parent.postal.Text End If
If Check5.Value = 0 Then If add.Value <> "" Then If MsgBox("Are you sure you want to change this info?", vbInformation + vbYesNo, "Confirm")= vbYes Then add.Text = "" '* city.Text = "" prov.Text = "" postal.Text = "" End If End If End If 'added this end if to stop the Block without End If error
End Sub
First, any idea why I need that 'End If' comment??? The code won't run without it.
Second, I keep getting a "Can't reference a property or method unless the control has the focus" on the lines commented with a *. Why is that??? I'm certain I've done this before in VB but haven't run into these sorts of errors before.