Forms :: Sorting Multiple Fields On A Continuous Subform

Feb 10, 2015

I'm trying to use the following code to programmatically sort four fields on the continous subform:

Code:
Me.SPlanChange_03_OFFSET.Form.OrderBy = "AOBJ ASC, ORG ASC, AVAILABLE DESC, AGFND ASC"
Me.SPlanChange_03_OFFSET.Form.OrderByOn = True

It appears that the code works partially - the values in the "AOBJ" field are as they be and so are the values in "AVAILABLE" field. The values in the "ORG" and "AGFND" fields will not sort.

Is what I'm trying to do even possible?

View Replies


ADVERTISEMENT

Sorting Multiple Fields

Mar 19, 2007

I have a database with different "Categories": hotels, kennels, pet sitters, etc. I need to sort it so that I can export and print it. It needs to be sorted as follows:
State|City|Category. Whenever I do a sort it ends up giving me all of the hotels first (by state and city), then the kennels (same way), and so on. I need them integrated so that within each City, first come the Hotels, then the Kennels, then the Sitters, etc., and then on to the next city.
Is there an easy way to do this, without knowing SQL or other programming?

View 2 Replies View Related

Forms :: Selecting Record In Parent Subform From Child Continuous Subform

Jan 26, 2014

I have two subforms on a main form. Both use similar queries and nearly the same set of records and PK. The first subform is for data entry and the 2nd subform is a continuous form that lists the entries in order that are made from the 1st Subform. (for entering in vacation days and appointments)

The continuous form cannot be edited, it is to be a list for viewing the information only.

I have an edit button next to each record on the continuous form. When the button is clicked, I want it to take the 1st subform to that specific record as well (same PK), so the information can be edited there.

I cannot figure out how to get the 1st subform to go to the record on the continuous form when the button next to that record is clicked on the continuous form.

I tried the DoCmdSearch for record and just keep getting object is not open errors.

View 2 Replies View Related

Forms :: Sorting Fields In A Form?

Mar 14, 2013

How is the easiest way to sort fields in a form. A database view sort is no problem but I can find no way to sort a fields in a form short of using a query. I am using Access 2010.

View 2 Replies View Related

Forms :: Sorting Records In A Form (subform)

Jan 7, 2015

How to sort entered records in a subform by combo box. Notice combo box has integer value not text. I want to bo sroted by text visibled ASC. The code must be in Command control SORT (See pict enclosed)

View 2 Replies View Related

Forms :: Sorting (DATE) Field In A Subform?

Feb 21, 2014

I have a subform which tracks all the notes our personnel have entered in a specific project (which is the main form).

The issue is that I want the most current note to show in the subform when the project is "opened up". The underlying query for the subform has the [DATE] field sorted on "Descending".

View 2 Replies View Related

Sorting In A Continuous Form

Mar 24, 2005

Can I sort dates in an ascending order in a continuous form?

View 2 Replies View Related

Continuous Form Sorting Problem

Mar 22, 2006

How can i let the continuous from sorting by DESC?

Thank!

View 4 Replies View Related

Continuous Form Record Sorting

Mar 17, 2005

I doubt this is possible, but I'll see if anyone out there knows how to do this...

so i have labor entries that consist of a laborID (the guy doing the labor) the serviceID (service being performed) and all the payment info (peripheral, not really important). what i would like to do is add a field, Area, that describes where on the house the labor is being performed, ie the roof, the master bedroom, the kitchen, etc...

is there any way to sort these using continuous forms (maybe 2 continuous forms?) kind of like in a report where it goes, for instance (ignore periods, for spacing only):

Area: Roof
.....Tearoff yadda yadda
.....Replace yadda yadda
Area: Kitchen
.....Redo electrical yadda yadda
.....Replace toaster etc etc
.....Fix plumbing etc etc
Area: Bathroom..... etc

thanks for any ideas...i know this is ridiculous, but i figured i'd give it a shot

View 2 Replies View Related

Forms :: Continuous Subform - Last Record

Sep 14, 2014

I have a main form with a subform in continuous format. The subform displays the list of records and has a delete key allowing the user to delete that line (record) All works except if the user clicks the delete button on the new record line. Then there is an error message. Rather than use error trapping I would like to code a message OR simply beep to confirm nothing was done OR have the delete button disabled until something is entered into the record. The records do have a autonumber which I have in a hidden text box. I tried the following and even though the code shows that LineID does in fact = Null the code does not fire.

If Me.LineID = Null Then
DoCmd.Beep
Exit Sub
End If

View 4 Replies View Related

Forms :: Continuous Forms - Looping Through Records / Manipulating Fields On Form

May 29, 2015

I have a bound continuous tabular form,However, based on data content in one field of a record, I want a checkbox in the same record enabled, so the user can check it if necessary. I have created a record set using the form as shown below, and I am looping through each record. To show that my code is referring to the field with required data content, I display it as a message box and it works, yet my checkbox does not enable.

I have the code in the form_load event, however, for testing purposes I have it behind a button.If I am seeing this properly, the code behind the button enables the checkbox for ALL records once the criteria in the required field is true, and based on the last record, which has no data content, it disables the checkbox in ALL records. I also have the PK ID for each record hidden in the form. Can I utilize that to target the checkbox of each individual record??

Form Detail
-Form does not allow additions or deletions. Edits allowed
-All fields are disabled and locked
-I only want the check box to unlock if data is found in the "RequiredField" as referred to below. I have also tried if not isNull(requiredfield.value) then -enable checkbox, which yields the same results

Here is my code

Code:

Dim rstMyForm As DAO.Recordset
Set rstMyForm = Forms!MyForm.Form.Recordset
rstMyForm.MoveFirst
Do While Not rstMyForm.EOF
If Not RequiredField.Value = "" Then

[code]...

View 14 Replies View Related

Forms :: Conditional Formatting On Continuous Subform?

Jan 4, 2015

I have a continuous subform on a form. I have applied conditional formatting with expression is.. so that the formatting on one object (field on the subform) depends on whether there is anything in another field on the same subform named "Remarks".

My problem is that I this is not working to my expectations. First of all when the form with the subform is loaded the conditional formatting does not appear immediately. One has to run over the fields with the mouse with the hope that the conditional formatting appears.

Secondly the conditional formatting is not working well as they should.

View 5 Replies View Related

Forms :: Subform Continuous Combobox Duplicate Value?

Jun 25, 2015

I am setting up a subform in continuous with combobox, but when I enter the data on the first combobox, it duplicated to all the following records. Is there a way to stop that?

View 2 Replies View Related

Forms :: Read Only Values On Continuous Subform

Mar 3, 2015

i would like to have on my continuous subform fields from my table but only as a non-editable list (I have a dedicated mod form to actually modify the values), and I don't really like the way "Locked" and/or "Enabled" work, especially on combo boxes. To me, the arrow shouldn't be there: it looks like you can modify it, but you can't; it's a bit confusing and counter intuitive.

So what I did is replace those combo boxes with text boxes, and used DLookUp in the Control Source. Now I can lock and disable the text boxes and it looks just as I want it: you can't select the text, and most importantly there's no dropdown arrow.It works, but it's kind of a lot of work compared to what it is with the cbo. Also, since those are calculated values, they take a fraction of a second to appear, as opposed to the nearly instantaneous display of the values with the cbo, and there's only 5 entries in my test database.

View 8 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 :: Continuous Subform - Update Field

Jul 22, 2013

I have a continuous sub form linked to a master form. The sub form contains fields such as [date], [increase], [lastdateincrease], [task], and multiple other fields. The sub form can have one record or multiple records linked to the master form.

Each sub form record represents a service, monthly cost, and a price increase amount. I'd like to be able to enter data in two fields and have this data populate any remaining records, or for that matter, new records that I had to the sub form.

The fields that I would like to have populate are [date] and [increase].

When I enter the [date] and [increase] in the first record, I'd like all remaining records in the sub form to update with the [date] and [increase] amount automatically.

View 3 Replies View Related

Accessing Fields In Continuous Forms

Feb 8, 2006

Hi Guys,

I currently have a subform which relates to the primary key of the main form.

This subform contains possible 'Answers' which related back the main form/table 'Question'. Each possible answer has a true of false field to show whether or not it is the correct possible answer from the question field.

Currently the subform performs correctly, in that it shows up the 3 possible answers for each question... (in continuous form view)ie all three appear at once in 'form view' - but in the subform the only one answer and one true or false attribute appear at once.

Here is where the problem is - i need to be able to access the individual field values for these 3possible answers (in VB code). I cant work out how to do this? Does anyone know how access calls them? What will the checkboxname be? The problem is because there is only one checkbox on the form in 'Design View' (to see if the answer is the correct one), but then 3 in 'Form View', I cant work out how access distinguishes between them.

Many thanks

Ross

View 2 Replies View Related

Forms :: Continuous Subform - Populate Field With Text Box

Jun 24, 2015

I have a continuous subform with an unbound Concat textbox and would like to populate another field for each record with the results with a main form button onClick event.

How do I accomplish this?

View 2 Replies View Related

Forms :: Updating Subform In Datasheet / Continuous View?

May 1, 2014

I m having a subform in datasheet view. whn i use a join query as the record source for the sub form, i am not able to add or update any record in the datasheet. Is there anyway to use a linked query as record source of the datasheet with editable property.

View 2 Replies View Related

Forms :: Continuous Subform - OnClick Event For Text Box

Apr 2, 2015

I have a continuous subform which essentially comprises of a textbox that shows a field from a query.

The text in that box is essentially a few letters and a few numbers - what I am wondering is if I can have an on click event for the textbox, that when a user clicks the text it takes them to the record (in a different form) that matches the text contained in the textbox they clicked?

View 1 Replies View Related

Forms :: Repaint Continuous Subform With Conditional Formatting

Jun 2, 2013

I have a continuous subform with conditional formatting whereby when I select a record the row is highlighted.

It all works fine except that I have to requery the subform to enable the conditional formatting to work.

The Repaint method does not work on the subform.

View 1 Replies View Related

Forms :: Using Combobox In Continuous Subform To Update A Record

Feb 25, 2014

I have a continuous subform of 'static data' whose record source is a SELECT query across multiple linked tables.

Most of the fields are locked and purely there for information purposes but I need to be able to allow end users to change one particular field in each record if they need to - choosing a value from a predetermined list (i.e. one of the tables)

Usually, when I need to do this, I add a command button to the subform and use that to open a separate pop-up form specific to that record, from which the user can make whatever changes they like and then update the record. So in this scenario, a simple unbound combobox linked to that table, on that separate form, would work quite easily.

But I would prefer if users could make their changes directly from the subform without (yet another) pop-up form required each time, to make managing these records more fluid and less time-consuming.

So my thought was to use a bound textbox in the continuous subform (to take the existing value for each record), hide it and overlap it with a visible unbound combobox whose row source is the table of available options and whose default value is driven by the hidden bound textbox. And then to use the AfterUpdate event of the combobox to run the UPDATE query on the record in question.

However, while the combobox is getting the correct default value and the correct list items, I can't make a selection from it. Now I am aware there are 'issues' with using a combobox in a continuous subform but I was hoping I could circumvent them by not binding it.

View 14 Replies View Related

Forms :: Checkbox To Select Record In Continuous Subform

May 22, 2015

I have a continuous subform linked in a data query, I added some check box to select for each record. However, everytime I check a checkbox, it also check the same checkbox on the next record.

My check box consists of Shipping options - FEDEX, COURIER and HAND DELIVERY. These are the options I need to check for each records in the subform.

Is there a way I can select different checkbox for each record?

View 7 Replies View Related

Forms :: Continuous Subform - Unbound Check Box For Each Record

Nov 18, 2013

Working with Access 2000

I have a Continuous subform based on a query based on few linked tables.One of those tables has a Yes/No field which shows in the subform.

I want to be able to change the status of this field for each record independently, so I placed an unbound check box in the subform Detail section and a Command button on the subform Header section. However when I click one record check box, all of them change, I did not expect that. How do I move forward to get this done?

View 10 Replies View Related

Forms :: Continuous Subform - Hyperlink Cursor Inconsistent

Dec 18, 2014

I have a continuous subform on my main form where one text box is a hyperlink that opens a form. All is well, except....

When the mouse hovers over the text box of the top record, the cursor does not change to the hyperlink pointed finger thing (it's I-beam), even though the text in the textbox displays in hyperlink format.

If I hover over the hyperlink/text boxes of records 2 thorough x, the hand-cursor appears.

More info:
1. The hyperlink functions normally (i.e., the appropriate form opens to the appropriate record)
2. When I then return to the main form, the hand-cursor magically appears when hovering the first record.
3. I have 2 other continuous subforms on the same main form that behave the same way.

View 2 Replies View Related

Forms :: Sort Continuous Form By Two Fields?

Jul 6, 2013

I have a form I would like to sort by:

first - by App_Flag (a yes/no field) - have all the clients with "yes" on top

second - by App_Date - from the earliest to the latest

The query sorts it fine but the form does not - even if I requery the form (added a requery button).

Can a macro or coding make it sort it the way I need it?

View 7 Replies View Related







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