Combo Box Not Working In Subform

Mar 3, 2005

I have a main form which is linked through a [PackageID] field to a subform. i wast to use the same form for both shipments in and out. the subform has a list of serial numbers add for each [package id].

On the main form i have addresses ect and then a combo box onthe [PackageID] field which brings up all the serial numbers that came in, in that package.

This is perfect for sending a large container back out unopened, however there are times when the database will need to 'pick and choose' serial no.s from several packages. To do this i made the [SerialNo] field on the subform a combo box - looking up all the serial no.s in stock - however when a serial no is selected it doesn't update the other 15 fields in the subform.

Any sugestions? Got a feeling thats its quite an easy thing to do but its beaten me!

Many thanks

Ed

View Replies


ADVERTISEMENT

Forms :: Cascading Combo Boxes Not Working In Subform

Nov 28, 2014

I have a cascading combo box working fabulously in a form. However when I embed that form into another form, the cascading combo boxes quit working. After doing some searching around on the web I think my issue is either in the query that the dependent combo box references and/or in the "after update event procedure" but I just can't seem to figure out the exact changes to make to my database. Details:

Tables with data for combo boxes:LOOKUP TABLE - Veg Species - Species Type,
LOOKUP TABLE - Veg Species - Species Name.
Related together based on common field: SpeciesType

[code]...

When the form with the combo boxes is embedded as above, I can select the species type from the dropdown but when I try to select the species common name value I am asked to

"enter parameter value - Forms!SUBFORM2a - Enter Specific Veg Info!cmbSpecies_Type".

View 5 Replies View Related

Setfocus In Subform Not Working

May 5, 2005

I have a main form with a subform which in-turn also has a subform (in datasheet mode). When the user clicks a button on the main form I want to disable all of the controls on the subforms. This works fine until the user clicks the button while the focus is on one of the text fields in one of the subforms. It rightly complains that the control can't be disbled while it is in focus. To circumvent this problem I've tried setting the focus to another field before disabling the control. However this doesn't seem to work. It seems to ignore the setfocus and still flags the original error. Is it not possible to set the focus of a subform from the main form?

Example:

[subfrm1].Form![Field2].SetFocus
[subfrm1].Form![Field1].Enabled = False

This fails if the focus was in Field1 at the time of executing the code.

Any ideas?

View 3 Replies View Related

Not Working The Combo Box From Query

Jul 4, 2007

Hi;
I'm using Access 2003 and trying to select the criteria for a query from a form that include combo box. The form that have combo box is work.

Our SQL statement is;

SELECT Names.Name
FROM [Names]
WHERE (((Names.Name)=[Formlar]![Form1]![Name]));

When I run the query the box comes but not the list.

Could you give me some advise to correct the problem.

Thank you for your help.
ibrahim

View 8 Replies View Related

Combo Boxes Not Working As They Should?

Jun 25, 2004



I have a main form with two combo boxes on which are linked if you select from the first cbo it filter the second. I also have subform that has a combo box on which is filtered by the second cbo on the main form. All works lovely when adding a new record BUT when I move to another record the cbo entries in the subform are not there, there are saving to the table are all the other data is showing just not the combo box entries - to get round this I have to reselect from the second cbo click into the subform and refresh and then they appear but this isn't how it's meant to work and I'd have to do this on every record but it then resets the previous one

I think I'm going mad!

Any help would be great

View 12 Replies View Related

Form Filter Not Working In Subform

Aug 8, 2005

platform : access (adp) / sql server
Problem : form filter not executing in subforms

When I goto one of my subforms I can activate the form filter.
When executing the form filter no records show up, it just keeps showing my criteria. When disactivating the form filter I receive an error message telling that my view must be misspelled (it's about spaces). My view is called Vw_people , as a record source it works fine so it can't be misspelled.

Is the problem the adp connection or the subform? I don't know

View 1 Replies View Related

Cascading Combos Not Working When In A Subform

Oct 7, 2005

Heya

Ive got my combos working fine now (thanks to all you kind folk on this forum!) but now that I have opened the main form (in which the combo box form is nested), once I have selected an item in the first one, and then click on the 2nd combo, a parameter box comes up saying "Forms!Training Record!Course_title_combo" and wants a value.

I cant see why this doesnt work when the form is nested, any ideas?

Gazz

View 11 Replies View Related

Modules & VBA :: DSum Not Working On Subform

Nov 2, 2014

Every time i try to get info from a sub form or its table ,Things never sem to work.Is there something special you have to do for eg maybe going via the main form?I am trying to use dsum as an alternative to multiplying info in the sub form.This is the code

=DSum("SoldAtPrice*Quantity","[Order Details]","IDNewOrders=" & [OrderID FK]).

View 4 Replies View Related

Combo Box Auto Expand Not Working

Sep 22, 2005

Any ideas why combo boxes that all have their "auto expand" option set to YES are not auto expanding as I type-in text? They were working last week and I have no idea why they're not working now. Strangely, if I type in any of the entries present in the combobox list (text such as "St. Louis City") exactly as it appears in the combobox list, and then press enter, I get an error message telling me the value is invalid. Then, if I use the drop-down list to find and select "St. Louis City", it allows me to enter this value.

View 1 Replies View Related

Query Not Working Thru A Combo On Form

Aug 4, 2006

I have document management system for 2 projects in one db. I have a login form where user has to select the project id thru a combobox. And I have all the queries based on this combobox to display results in form or report. But after login and selecting the project, login form closes and main form opens to display data pertaining to that project. But it does not work, the moment we click close to open main form again query method apears displaying the same string :[Forms]![frmLogon]![Project]. This happens for all forms, reports. I cant't figure this out. Can somebody please help me?

View 2 Replies View Related

Forms :: Dependent Combo Box Not Working

Aug 18, 2013

I have 2 combo boxes, one Categories and Products. However I have follows a tutorial and when I select the Categories, the products do not show even though the tutorial says it does. I have attached a copy of the DB.

View 4 Replies View Related

Combobox Selection In Subform Not Working As Required - HELP (please :-) )

Apr 20, 2005

I have an orders subform displaying the line items in an order.

I have two combo boxes in the subform that allow the user to select 'Product catagory' and 'Product'. To enter a product the user must first selct a product catagory which filters the products available for selection. If the exact product is not listed then on option to 'Add new item' must be offered

The problem:
At the moment the combo boxes show the same product catagory on every line of the order, even though each line is different and the second combo box is empty

How do I:
1. make the combo box only display the entry for the line it is on

2. force it to filter the available entries for the second combo box

3. offer an option in the second combo to 'add new item' (if the users selects this then Access should open the products entry form and pass the vale of 'Product catagory' from that line as a parameter to preset the form.

other info:
The data for the subform is generated by a query on 3 seperate tables all linked by relationships.
(tblProductCatagory, tblProducts, tblOrders)

The combo boxes are unbound

Thx.
Kev.

View 10 Replies View Related

Forms :: IIF Function Not Working On Continuous Subform

Jul 1, 2013

I have an IIF function specified on a continuous sub-form as below - basically it checks to see if the value of two text boxes is equal, and if they are it displays 'And', if not it displays the value of the column EntitlementName. I'm trying to work around grouping not working in continuous forms.

When I view the form directly it works no problems but when I view the form as a sub-form instead of showing the correct output it shows #Name? Both the text boxes I refer to have the correct values in them.

=IIF([txtPrevValue]=[txtValue], Format("And"),Format([EntitlementName])

View 2 Replies View Related

Forms :: DLookup Not Working In Subform - Keep Getting Error

Apr 23, 2014

I have a subform that has the Expense Code from the Expense Codes Table and I want to look up the Description (yes I know its not correctly spelled in the formula but it is in the table)

=DLookUp("Expense Discription","Expense Codes","Expense Code=" & [ExpCombo])

But I keep getting "error" returned

I have double checked spelling field names etc...

View 6 Replies View Related

Modules & VBA :: Looping Through Records In Subform Not Working

May 23, 2014

Im v new to VBA and been having trouble getting the following code to loop through the records in my subform:

Private Sub cmdComplete_Call_Click()
Dim rs As dao.Recordset
Set rs = Me.fsub_Call_Off_Quantities.Form.RecordsetClone
rs.MoveFirst

[code]....

It only seems to update the first records txtQuantity_Called_Off value. I have tried all the 'looping' code variations i can find and they all seem to only update the first .

View 6 Replies View Related

Forms :: Right Click On Record On Subform Not Working

Apr 11, 2014

When I click on a record on the subform and right click to get the delete record option nothing happens in FORM view but works in DESIGN view.

I have checked all the record and form options and they are all correct.

Using Access 2010

View 3 Replies View Related

Forms :: Chart Not Working From Combo List?

Dec 5, 2013

I have a chart I am trying to create that pulls data from a table. It pulls from a list of about 7 items. The issue I have is when I do this it is showing the ID numbers in the legend and not the actual names>

How do I fix this.

View 1 Replies View Related

Modules & VBA :: Navigation Form - Filter On Subform Not Working

May 12, 2015

I have a navigation form which has two subforms on it (ie 2 tabs linking to different forms). I have got aq filter working for one of the forms but not on the other. This is using

If IsNull(Me.txtoperationscontract) Then
MsgBox "Please type a contract number into the textbox!", vbInformation + vbOKOnly, "Incorrect Details"
Else
Me.OperationsSubform.Form.Filter = "[Contract]='" & Me.txtoperationscontract.Value & "' "
Me.OperationsSubform.Form.FilterOn = True
End If

The problem is that it does not work on subform B because the Contract field does not exist.

View 6 Replies View Related

Modules & VBA :: Filter Properties Not Working First Time On Subform

Jan 13, 2015

I have a form that uses a listbox. I can select multiple items and then update a subform. When I press a button with VBA and use the filter property on the subform for the first time, nothing happens. When I press the button a second time, it does - and it works thereafter with different selections. It only happens that first time, after loading the form and pressing the button for the first time.

I have tested that the list items are accessible via the vba variables and stepping through my code and the problem starts with the filter properties.

the statement:

Me.sbfrmCluster.Form.FilterOn = True
Me.sbfrmCluster.Form.Filter = strFilter

is not switched on first time (I have tried a requery and refresh statement after this). When I step through the code the first time, the FilterOn property remains false. A second button press and it is fine.

View 2 Replies View Related

Modules & VBA :: Subform Requery Not Working On Form Open

Apr 3, 2014

I have a form with two subforms. One subform is a datasheet that pulls data from a temp table. During the other subforms Form_Current, the temp table is emptied (DoCmd.RunSQL "Delete from tblAddRefs"), reloaded with data relevent to the current record, and requeried (Forms("frmEDFP").Controls("tblAddRefs subform").Requery). This works like I want it to...

With the exception of the initial load of the main form. The subform based on a table shows (#Deleted) instead of data. if I step through the code, I can see that the temp table is emptied and repopulated by the time I try to requery the subform. This is still happening during the Form_Current of the other subform, which is successfully running on main form load.

If I requery (Forms("frmEDFP").Controls("tblAddRefs subform").Requery) using a button on the main form once it is loaded, the #deleted data is correctly is replaced by regular data, so it's like the requery in the Form_Current event isn't doing anything during load.

View 2 Replies View Related

Combo Boxes Stop Working After Returning To Form

Dec 1, 2005

Hello all,

I have combo boxes populated with all values in a particular field, then shunt the form onto that record (standard combo box for selecting records from a list in other words).

Problem is, these boxes seem to stop working if I leave the form for another and then return to it.

Here's the code Access puts behind:

-----------
Set SerialRS = Me.Recordset.Clone
SerialRS.FindFirst "[Serial Number] = '" & Me![Combo60] & "'"
If Not SerialRS.EOF Then Me.Bookmark = SerialRS.Bookmark
-----------

The form may be opened and closed via other processes (although never unloaded), but when I come back to it these combo boxes always stop working! Why?

View 3 Replies View Related

Forms :: Combo Box - Search Function Not Working Within Form

Jul 23, 2015

I recently created a database to be used to store incoming invoices. We have 4 suppliers which supply the same material and wanted each supplier to have its own database.

I began by making a database which included all the key tables, forms, queries and functions I would need to then save 4 copies, one for each supplier. This just meant I would not have to repeat the process for each individual supplier.

The problem is all my data is external and upon importing it into the database it has made the search function (combo box) not return results.

I believe this is because:
1) The form was created before the records existed
2) The records were imported from an external source and not created using the form.

However, the way I have designed the form is so I can see all relevant information linked with a specific invoice. This aids in gathering information quickly about an invoice but also so I can input credit note and invoice query information linked to a specific invoice on the same page.

Is there anyway to remedy this?

Or use a similar search function that returns records in my form "Main View"

The last thing I want to do is have to create the form again, although I don't think this will work either as reason 2) states.

View 14 Replies View Related

Forms :: Requery Not Working In A Form With Combo Boxes

Jan 30, 2015

New to access...just build a form, in which there are combo boxes....cascading of boxes was done.

Now the problem is I want afterupdate function to get activated when user changes the value of one combo....for which I have created a code in code builder... see the code... I think I am making a mistake in writing the code to requery...

View 5 Replies View Related

Combo Box Working On Standalone Form But Not In Datasheet In TabCtl

Dec 22, 2014

i have a form with two cascading combo's that work when the form is opened as a single form however when i place the form on Page 3 of a TabCtl it fails to cascade the correct values.

frmSiteDetails > TabCtl33 > Page3 > frm ConditionDetails subform with Combo's 1 & 2
Combo 1 = [ElementGroupName]
SELECT ElementGroupID, ElementGroupName FROM tblElementGroup; has Column Count of 2 and Bound Column 2
Combo 2 = [Element]
qrySubElements has SQL:

[code]....

View 14 Replies View Related

Forms :: Filtering A Combo Box On A Subform From A Combo Box On A Main Form

Apr 27, 2013

I have a Suppliers database which contains a form that will allow me to place orders with Suppliers.The Main form has a combo box that allows me to select the supplier. The combo box is called SupplierID with the following:

Row source: SELECT Suppliers.SupplierID, Suppliers.CompanyName FROM Suppliers ORDER BY Suppliers.CompanyName;

The subform is called Stock Subform witha combo box called ProductID with the following:

Row source: SELECT DISTINCT Products.ProductID, Products.ProductName, Suppliers.CompanyName, Products.Discontinued FROM Suppliers INNER JOIN Products ON Suppliers.SupplierID=Products.SupplierID WHERE (((Products.Discontinued)=0)) ORDER BY Products.ProductName;
Event Procedure - AfterUpdate: Private Sub ProductID_AfterUpdate()
On Error GoTo Err_ProductID_AfterUpdate
Dim strFilter As String
' Evaluate filter before it's passed to DLookup function.
strFilter = "ProductID = " & Me!ProductID

[code]..

The Link fields are done on the Purchase Order ID (PONoID).What I want to achieve is to select the supplier from the combo box (SupplierID) on the main form and then the combo box (ProductID) on the subform to filter to only show products directly supplied by the Supplier selected on the Main Form.

View 11 Replies View Related

General :: Datasheet View - Date Picker Not Working In Subform?

Sep 11, 2012

I have a subform that is in Datasheet view. If I open this subform on it's own, the Date Picker works for the Date field. However, if I open the main form with the subform on it, the date picker doesn't work? Nothing happens when I select a date on the calender.

I am using MS Access 2010.

View 1 Replies View Related







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