473,385 Members | 1,944 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem with duplicating two combo boxes from another form

91
I am trying to move the location of two combo boxes to a different form, but it is not working very well. the two combo boxes are cmbEmployeeID and cmdPerformance. I am trying to move them to a subform that pops up from another form.

I copied everything exactly, the row source is exactly the same, and I added the reference in the forms Record Source. (seen below)

cmbPerformance RowSource
Expand|Select|Wrap|Line Numbers
  1. SELECT STAT_Performance_LT.PerformanceID, STAT_Performance_LT.Description FROM STAT_Performance_LT ORDER BY [PerformanceID]; 
  2.  
cmdEmployee RowSource
Expand|Select|Wrap|Line Numbers
  1. SELECT qryActiveEmployees.EmployeeID, qryActiveEmployees.Name FROM qryActiveEmployees ORDER BY qryActiveEmployees.Name; 
  2.  
Forms Record Source Property
Expand|Select|Wrap|Line Numbers
  1. SELECT STAT_Orders.EmployeeID, STAT_Orders.PerformanceID, Shippers.Name, Orders.OrderID, Orders.ShippedDate, Orders.RequiredDate, Orders.ApprovedByEG, Orders.ApprovedByBB, Orders.ShipTrackNum, Orders.ShippedInvoice, Orders.ShipperID, Orders.InvoicePrinted, Orders.PackageSize, Orders.ShippedBy, Orders.FilledBy, Orders.ShipComments, Orders.PrePaid, Orders.Collect, Orders.Freight, Orders.Subtotal, Orders.GSTCharge, Orders.PSTCharge, Orders.HSTCharge, Orders.CustomerID, Orders.OrderDate, Orders.TechAssigned FROM Shippers RIGHT JOIN (Employees RIGHT JOIN Orders ON (Employees.EmployeeID=Orders.ShippedBy) AND (Employees.EmployeeID=Orders.FilledBy)) ON Shippers.ShipperID=Orders.ShipperID; 
  2.  
The comboboxes are showing up fine, but I cant click on any of the items


Anyone have any ideas whats wrong/what I am missing?
May 19 '10 #1
4 1467
missinglinq
3,532 Expert 2GB
Possible causes:
  1. Combobox control is Locked
  2. AllowEdits on popup form is set to No/False
  3. Popup form is based on a Query that is Read-Only
If the 'subform' is an actual subform (it sounds more like it's simply a form being opened from another form, which does not constitue a 'subform') the main form being Read-Only would also cause the problem.

Linq ;0)>
May 19 '10 #2
matt753
91
You're right, its a popup not an actual subform.

The combobox isnt locked, the AllowEdits is Yes, and the form is based off.


Here is the code for the RecordSource of the form if it helps. The STAT_Orders.EmployeeID and STAT_Orders.PerformanceID are where I am getting the values for the two comboboxes
Expand|Select|Wrap|Line Numbers
  1. SELECT STAT_Orders.EmployeeID, STAT_Orders.PerformanceID, Shippers.Name, Orders.OrderID, Orders.ShippedDate, Orders.RequiredDate, Orders.ApprovedByEG, Orders.ApprovedByBB, Orders.ShipTrackNum, Orders.ShippedInvoice, Orders.ShipperID, Orders.InvoicePrinted, Orders.PackageSize, Orders.ShippedBy, Orders.FilledBy, Orders.ShipComments, Orders.PrePaid, Orders.Collect, Orders.Freight, Orders.Subtotal, Orders.GSTCharge, Orders.PSTCharge, Orders.HSTCharge, Orders.CustomerID, Orders.OrderDate, Orders.TechAssigned FROM Shippers RIGHT JOIN (Employees RIGHT JOIN Orders ON (Employees.EmployeeID=Orders.FilledBy) AND (Employees.EmployeeID=Orders.ShippedBy)) ON Shippers.ShipperID=Orders.ShipperID; 
  2.  
May 25 '10 #3
missinglinq
3,532 Expert 2GB
A form based on a query that joins three or more tables is almost sure to be Read-Only!

Have a look at Allen Browne's article as to why this is so and for some possible workarounds:

http://allenbrowne.com/ser-61.html

Linq ;0)>
May 25 '10 #4
matt753
91
"It uses JOINs of different directions on multiple tables in the FROM clause. Remove some tables."

I dont think I can just remove some of the tables, they are there to get other data from for the rest of the form
May 26 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: D Perron | last post by:
I am having a problem working with one combo box that is filtering another combo box. My table is tblResearch. There are two field in this table; one is and the other . I have a form called...
2
by: jim | last post by:
I have created a Table that has 13 fields and 2 Primary Keys, e.g. 60 1, 60 2, ... 60 28, 61 1, 61 2, ... 61 28, etc... I want to create a Form where I can input the Primary Key values to query...
3
by: prakashsurya | last post by:
Hi i am having a small problem with combo boxes actually i am preparing a form in which i have to go through the experience in years for that i am using 4 combo boxes. on the first two combo...
0
by: annivanova | last post by:
Hi, I saw posts in Dependent listboxes on access forms, which problem is very similar to my. I’m working over to create an MS Access application. I used in my project given code : Code:...
3
by: buddyr | last post by:
Hello, I have a store database already set up with alot of data in it. I have one table: table1 fields: partNumber, storeName,date,amount,description- ( some others) I have one form: form1 up to...
4
kcdoell
by: kcdoell | last post by:
I have a form (Form1) that displays records based on 3 unbound combo boxes that are also on my form. My record source for this form is a query “ReQryForecast” (which looks at those combo boxes via...
11
by: jgoodnight | last post by:
Hi, I have a form with three combo boxes: Area, Sub-Area, and Factor. I've set up the Sub-Area combo box to list only those areas that are part of the selected area. I've set up the Factor combo...
10
by: BeaBea | last post by:
Hi All, I have been reading some of the threads in your forum and decided to join and post my question. Hopefully it won't be too lengthy. I have created an Unbound Form called paramform2. ...
4
by: JeremyI | last post by:
The form I am working on at the moment is designed to allow a data entry person to add new questions for the assessment of some properties. I am trying to set up cascading combo boxes that force the...
2
by: mwgjr | last post by:
Problem – displaying a graphics form from another form’s button click event without losing the XY data plot. If the Startup form is the GraphWindow form the Graphlib.vb calls create a XY data...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.