Forms :: Dialog Box For Certain Values Entered

Apr 2, 2015

I have a form that collects a survey where the user selects between 1 to 9. I was wondering if the user selects a certain range, for example between 1 to 4 a yes/no dialog appears. If the user selects a range from 5 to 9 , they get no dialog box.

View Replies


ADVERTISEMENT

Forms :: Pulling Top Values Randomly Depending On Value Entered Into Textbox

Dec 8, 2014

I have a textbox & button that when entered & pushed - run a query for the top values randomly depending on the value entered into the textbox.

My code is...

strSQL = "SELECT TOP " & Me.Text140.Value & " [CAN - NAME].Name, [CAN - CPT/VOUCHER].Voucher_Number, " & _
"[CAN - CPT/VOUCHER].Procedure_Code, [CAN - CPT/VOUCHER].Service_Date_From, [CAN - CPT/VOUCHER].Patient_ID, [CAN - CPT/VOUCHER].service_id, Rnd([service_id]) AS RandomNum " & _
"FROM [CAN - CPT/VOUCHER], [CAN - NAME] WHERE [CAN - CPT/VOUCHER].Service_Date_From Between " & Me.StartDate.Value & " And " & Me.EndDate.Value & " ORDER BY Rnd([service_id]) DESC "

It runs like it should but doesn't populate any records...that is until I go into the design view, deselect one of the fields and then reselect the same one - only then does it populate.

Do I need to open the query first and then update/append instead?

View 5 Replies View Related

Forms :: Lookup With Values From Another Table - Populate County Once Zip Code Entered

Mar 22, 2013

I want my form frmintake to lookup with values from another table and populare county once the zip codes has been entered.

I have a table called tblintake and another tblcounty.

tblintake has zip codes entered manually

tblcounty has zip codes and counties for all regions

how does this work out in dlookup.

=DLOOKUP[Zip Code],[tblCounty],[zip Code]=[County])

View 1 Replies View Related

Forms :: Save Values Entered Into Unbound Text Boxes To Fields In Table

Mar 6, 2013

how can i to save the values entered into unbound text boxes to fields in table

View 2 Replies View Related

Automatic Values Based On Entered Data

May 9, 2005

Hi all,
Please bear with me if I'm asking a dumb question. I've been tasked to create a database from scratch and I've not had much experience working with Access.

**My Question**
Using a form is it possible to have the form automatically enter a "value" in one field based on the information inputed by someone in a different field.
ie. When some one puts in a value between 0 and 20 in one field it automatically enters a 1 in the other, and when some one puts in a value between 21 and 30 you get a 2 and so on down the line.

Thanks for the help.
Cheers

View 6 Replies View Related

Create Primary Key From Values Entered In The Field

Nov 28, 2014

I have two Tables, Table A and Table B...Table A and B have a one to many relationship with A (one) and B (many).I have a Master form that displays information for Table A. Also, I have a subform within this Master that displays information for Table B.

As I scroll through the records of A, you can see the 1-many relationship elucidated in the subform with many being displayed for Table B.I run into a dilemma, though, when I try to ADD a new record to Table A (and in turn Table B).When I add a new record, there is no Primary Key left to be displayed since this primary key is generated from a query.Hence, when I move to a new record, I can not save the record because there is no primary key. Since there is no primary key, there is nothing that i can input into the subform either. I want to create the primary key from values entered in the field. However, i CAN NOT create a relationship with an expression for field values.

View 1 Replies View Related

Pulling Data From Other Tables Based On Values Entered

Dec 13, 2007

I'm attempting to build a simple database for a martial arts tournament registration. The weight division (Fin, Fly, Heavy, etc.) depends on the age, the sex and the weight. I've tried this several different ways, most recently by using one table called "competitors" with all the entrant's information, and several other tables based on the age class/sex (i.e. I have a table called Age 8-9 Male with the weights and divisions in it, and other tables for the other ages/sex).
So, basically, what I'd like to have happen is a report that will lookup in the correct table the division, based on the weight entered. In other words, for a record where the age is 8-9 and the sex is Male, the report compares the weight to the values in the 8-9 Male table, or if the record is a 12-13 Female, it looks in the 12-13 Female table for the weight, and places the correct division in the Division field of the report.
Probably going about this wrong.....but any help would be appreciated.

View 5 Replies View Related

Queries :: Append Query With User Entered Parameter Values

Sep 17, 2013

I have an append query that currently looks like this URL...This query automatically adds the machine parameters for a product code and lot number into the running condition log. This is so the user does not have to manually go in and tediously select each machine parameter.

The running condition log also has a date field to specify what day and record number the machine parameter's value was recorded on. When I run the query the appended rows look like this. The product and lot are defined by user parameter and there are actually about 36 machine parameters

Code:
Productstockcode LotNo Day Record Parameter ActualCond
PE-500 130816m71 StockTemp
PE-500 130816m71 Zone 1
PE-500 130816m71 Zone 2

My question is: how do I modify the query to automatically add the date and record number in one shot? It needs to be user defined at the time of the query because this data is not stored anywhere else in the database. For each 36 machine parameters the day and record would be the same.

View 3 Replies View Related

Forms :: Forms Not Opening In Modal / Dialog Mode

Aug 7, 2014

the forms are not opening in modal/dialog mode when they should be.The forms' pop-up and modal properties are set to "yes"..The code specifies to open Dialog so, for example:

Code:
DoCmd.OpenForm "frmCompanies", , , , , acDialog

Yet, the form opens behind the other form (which, incidentally, is also set to be pop up and modal in the form properties--is that the problem? If so, why wasn't this an issue until now?).

View 14 Replies View Related

Forms :: Scrolling Within A Dialog Box

Sep 1, 2014

We have a system which calls a form from a hyperlink. The called form opens in Dialog mode (a box with a border which "Overlays" the screen). It has been working well until now when a new user has started using a computer with a smaller screen which can't display all of the dialog box (they don't have access to critical fields).

For now I have changed the mode of opening to normal which provides scroll bars but this only opens to the right of the navigation menu. Is there a way to set up scrolling within the dialog box.

View 2 Replies View Related

Forms :: Can Use Enter Parameter Value Dialog

Feb 1, 2014

Can I open a "Enter Parameter Value" dialog box to capture and use the input without running a query?

something like

Code:
ParaBox ("Enter the Hostname", vbEntParameterVal, "Hostname Required")

or

Code:
Set pDialog = Application.ParaValueDialog(mso?????)

I need a short string input from the users at application load, and I'd like to use the "Enter Parameter Value" dialog.I'm about to build a workaround that will invoke a SQL statement to save the entry to a temp table, but it'd be nice if I could just call up that dialog box and store the entry as a VBA variable.

View 3 Replies View Related

Forms :: Populate Listbox On Dialog Form

Sep 19, 2013

In my tables I have a field called first serial. This is the first element of a serial number range associated with each record. Very rarely I have to ask the user to specify a certain serial number in that range. (The serial numbers can be generated easily from the first serial) This happens during the run of a macro, so I have to use a Fom opened with WindowMode:=acDialog. The problem is that I have to populate a listbox with the generated serial numbers on that form. But I can't interact with a dialog form, since it stopos the running of the macro. I have tried to open it hidden, and change the modal property to true once the listbox have been populated, but this dosen't stop the macro to wait for user input.Is it possibble to pass the first serial value to the form, and populate the listbox in one of the Form's opening events?

View 3 Replies View Related

Forms :: Make Confirm Dialog Appear Before On Click Event Action

Jul 3, 2014

I'd like a confirm dialog to appear on button click, so when the user clicks 'yes', the on click event should continue and when the user click 'no', the event should stop.

View 2 Replies View Related

Forms :: Updating Record On Table - Enter Parameter Value Dialog Box Appearing?

May 16, 2015

I am having a problem updating a record on a table called BookInTable . The field I want to update is called Engineer and the record is found using the field Barcode. I have a form with 2 text boxes BarTxt and EngTxt as well as a button called SaveBtn. on the OnClick event of the SaveBtn I put the following code

Code:

Private Sub SaveBtn_Click()
If IsNull(Me![BarTxt]) Or (Me![BarTxt]) = "" Then
MsgBox "Please enter a value!", vbOKOnly, "Invalid Search Criterion!"
Me![BarTxt].SetFocus
Exit Sub
End If

DoCmd.RunSQL "Update BookInTable SET Engineer = " & Me!EngTxt & " WHERE BarCode ='" & Me![BarTxt] & "'"

End Sub

But this is bringing up the enter Parameter value dialog box for whatever I type into EngTxt. If I enter text into that box and then click okay it then updates to the record. how can I stop the from enter Parameter value dialog box appearing?

View 2 Replies View Related

Forms :: Checking Value Has Been Entered?

May 22, 2015

I have a form with a number of entry fields and after a button is clicked I write to an MS Sql datatable. Everything works fine as long as I put a value in each field. If I do not put a value in one of the fields the sql does not run and the record is not added / updated in the database. I have tried checking the length of the data in the field using

Ent_Length = Len(tb_TagDesc)
or
Ent_Length = Len(tb_TagDesc.Text)
or
Ent_Length = Len(tb_TagDesc.value) but nothing shows.

I am using Access 2007, 32 bit Windows 7

View 1 Replies View Related

Forms :: Calculations Not Entered Into Table

Mar 18, 2013

I created a Form to enter data into a table. Two fields are numeric and typed into, a third field calculates the ratio instantly. I did that by entering "=field1/field2" into the control box in the properties panel for that form element.

However, when I look at the table, all the data goes in except this calculated ratio. Is there a way to get the form to "write" it to the table?

Alternatively, how to get the table to act like a spreadsheet and automagically calculate that third column, then it actually doesn't even need to appear on the form.

View 5 Replies View Related

Forms :: Value Entered In Form Does Not Appear On Table

Nov 14, 2014

I am having an issue in access form that when I enter new values in a form it does not appear on the table. Normally, as I understand, value entered in form should appear on table automatically. This is not happening to me.

I checked the design view of the form and find that the data is linked to table, but in reality it is not the case.

View 3 Replies View Related

Forms :: Lock Form Until Certain Field Is Entered

May 11, 2015

I have a data entry form that I would like to lock all fields until the Contract Number is entered.

to see if I was on the right path I tried something very simple,
on current
if me.contract_num = null then
msgbox("enter contract number")
end if

but that didn't even work

View 8 Replies View Related

Forms :: How To Repeat Fields Entered In A Subform

Dec 16, 2013

I have a form (based on ArtistSong) and a subform tied to the ArtistSongID. This subform is a set of 11 variable attributes of that Artist & Song combination. Also, there can be multiple records in that subform, all associated with the Artist & Song.The user would like, when he makes an initial entry of 11 attributes, to go ahead and repeat that particular combination in the next New Record.

View 3 Replies View Related

Forms :: Data Not Saved After Entered In Form

Feb 5, 2015

I am not sure where this thread should be in forms or queries. I have database which has 3 linked tables by ID in each table. I have built a query on the 3 tables, then created the form.

Now when I enter data on the form and save it, when I open up the said form again , the data is not there. Yet the data is in both the table and query

If I only use 1 table, then there is no problem. The record source for the form is the query, and the query uses the 3 tables.

View 14 Replies View Related

Forms :: SQL To Run After Data Is Entered Into Form Control

Aug 3, 2015

I have a form that the user enters employees daily duties. I have code to run sql after the BoxNum field has data in it. I want it to look at the BoxNum field and the dropdown box for the task to see if the entered box number has already been completed for the task selected on the form. Here is what my code looks like now. The code runs but gives me the msgbox no matter if it is a made up box number and I also get a syntax error 3075.

Code:

Private Sub Text13_BeforeUpdate(Cancel As Integer)
Dim rs As DAO.Recordset
Dim strSQL As String

[code]....

View 6 Replies View Related

Forms :: How To Change Am Or Pm Based On Time Entered

Nov 1, 2013

I have a form where I am capturing StartTime and EndTime of certain events. I have set the input mask as 99:00 >LL;0;_

My users think it is too much to enter am or pm. What they want is the system to calculate the am pm based on the time entered.

If the time entered is between 8:00 to 11:59, the system should save it as 11:59 am and if the time entered is between 12:00 to 7.00, the system should save it as 7.00 pm.

How can I make this happen.

View 5 Replies View Related

Forms :: Duplicating A Value On Another Field When Entered In Form

Jul 30, 2014

I have a form that has two date combo boxes. I would like to have one of the combo boxes populate by itself with the same value the user enters in the other combo box. How do I do this?

View 8 Replies View Related

Forms :: Checking For Data Entered On A Form In A Table

Jan 7, 2015

I am developing a form where students have to enter their ID number but I want my form to check through a table of students and their IDs and flag up if the ID number does not exist in the table.

View 10 Replies View Related

Forms :: Message Prompt When Editing Already Entered Record

Apr 22, 2013

But how do I have a message box pop up that warns the user he is about to edit an already entered record?

Is there a setting for this in the form design. Or do I need VBA, in which case what form event would I tie the msg box too?

View 5 Replies View Related

Forms :: Design A Subform To Allow Multiple Records To Be Entered?

Mar 27, 2015

I am trying to design a subform to allow multiple records to be entered and then uploaded to a table. I've designed the subform but it is currently pulling all of the records from the table through and all I want is a blank subform for data entry.

I have tried putting a macro in the On Load and On Open events to get it to go to a new record but I keep getting error number 2046.

View 2 Replies View Related







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