473,386 Members | 1,598 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,386 software developers and data experts.

Referencing Unbound Controls in a Query - Ceased Functioning

For some reason referencing an unbound control on an active form from a query has ceased to work correctly. While other previously existing references to unbound controls in the same form seem to work fine new ones just return null or if referencing a combo box some random character (usually a box). In fact any subsequent queries created that reference controls on active forms don't seem to work properly. What could be causing this problem? Has the database become corrupted?
Jun 11 '07 #1
2 2194
MSeda
159 Expert 100+
Are you getting an error message like "the form method is unavailable?"
or just the queries aren't working? Maybe you can post the SQL from your query as well as info on the form, what type of controls are being referenced by the query etc...
Jun 11 '07 #2
Are you getting an error message like "the form method is unavailable?"
or just the queries aren't working? Maybe you can post the SQL from your query as well as info on the form, what type of controls are being referenced by the query etc...
No problems with the query running and no error messages given except those calculated fields on the report that result from the null generated in a query where the control clearly has a value (verified in the immediate screen). The other unbound controls on the form such as [Forms]![frmTaskingOrderGenerator]![dtEventHorizonEnd] (date fields) work fine but any subsequently added ones such as [Forms]![frmTaskingOrderGenerator]![chkIncludeAdvance] (checkbox) where I would expect to get a boolean result I get a null (the checkbox is not triple-state and has a default value of -1). I created some subsequent test queries that reference unbound controls in other forms and none of them work either. I have compacted and repaired the database and done a detect and repair on Access itself. Both completed without issue.

Expand|Select|Wrap|Line Numbers
  1.  
  2. SELECT qryOrganizations.lngCommandID, qryOrganizations.txtCommandName, qryOrganizations.bytCommandCOCLevel, qryOrganizations.lngOrganizationID, qryOrganizations.bytOrgCOCLevel, qryOrganizations.txtOrganizationName, qryOrganizations.txtOrganizationShortName, qryCOCLevels.txtCOCLevelDesignation AS txtOrgCOCLevel, Choose([Forms]![frmTaskingOrderGenerator]![frameEventHorizon],DateAdd([txtIntervalVBCode],-[Forms]![frmTaskingOrderGenerator]![intEventHorizonInterval],Date()),[Forms]![frmTaskingOrderGenerator]![dtEventHorizonStart],Null) AS dtSelectionStart, Choose([Forms]![frmTaskingOrderGenerator]![frameEventHorizon],DateAdd([txtIntervalVBCode],[Forms]![frmTaskingOrderGenerator]![intEventHorizonInterval],Date()),[Forms]![frmTaskingOrderGenerator]![dtEventHorizonEnd],Null) AS dtSelectionEnd, [Forms]![frmTaskingOrderGenerator]![chkIncludeAdvance] AS bolIncludeAdvance
  3. FROM frmqryEventHorizon_TaskingOrder, qryOrganizations INNER JOIN qryCOCLevels ON qryOrganizations.bytOrgCOCLevel = qryCOCLevels.bytCOCLevel
  4. WHERE (((qryOrganizations.lngOrganizationID)=[Forms]![frmTaskingOrderGenerator]![comboOrganizationSelect]));
  5.  
  6.  
Jun 12 '07 #3

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

Similar topics

3
by: MLH | last post by:
I have a form, bound to a query. Its RecordSource property is a query named frmEnterLienAmounts. The form has a few bound controls and some unbound controls. The unbound controls are calculated...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
3
by: google | last post by:
I'm developing an application for use within my company in Access 2003. I'm new to '03, the application I did for my former employer was in '97. The two applications have similar functionality...
2
by: Axel | last post by:
Hi, a question about something that seems very simple at first glance: is it possible to reference other controls of a subform in a query window without referencing through the parent form? I...
1
by: planetthoughtful | last post by:
Hi All, I have a mainform with a subform in which I show some task summary data. On the mainform I have a number of unbound controls that reflect values relevant to each task in the subform....
8
by: Robert | last post by:
I have a form (Worksheet) that works fine by itself. I have now created a seperate form (MainForm) that has a command button in the header and an unbound subform (FormFrame) in the Detail section....
21
by: cmd | last post by:
I have code in the OnExit event of a control on a subform. The code works properly in this instance. If, however, I put the same code in the OnExit event of a control on a Tab Control of a main...
5
by: SBC News Groups | last post by:
Using VBA how do I assign columns from a table to controls on an unbound form? Mike
4
by: dizzydangler | last post by:
Hi all, I am a new Access user and just starting to get my head around some of the basic concepts, so please take it easy on me :) My company has been managing client records on excel, and I’m in...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.