Queries :: Form With Datasheet View - Trim Data In A Query

May 1, 2013

I am trying to create a form with a datasheet view that will show me all exceptions worked on all member accounts. I have over 10k members that each could have multiple issues (exceptions) worked on their account. I am using MS Access 2007.

Example: I have a member John Smith, with member id of 1234-00 that has multiple "exceptions" worked on his membership, say 5 database records for his account. My initial query I only want to see him listed once. I then would double click his Member ID to open all activity of his account.

I found the code below and modified it to fit my database and it brings me back the results I need for the above. However, if a material change is made on John Smith's account, his number is incremented. His number would be incremented to 1234-01. The next material change 1234-02, etc. I am looking to modify the code below, or another way to do it, that ignores the "-" and any numbers after it. The numbers before the "-" will never change. I searched and saw the TRIM function but couldn't get it to work.

Below is the code I'm using that has the correct names from my database. I have a primary key set up that increments and is tied to the exception, not the member id.

SELECT firstname, lastname, exceptionswrkd.memberid
FROM
exceptionswrkd AS base
INNER JOIN (
SELECT memberid, Min(id) AS which_id
FROM exceptionswrkd
GROUP BY memberid
) AS sub
ON base.id = sub.which_id;

View Replies


ADVERTISEMENT

Queries :: Make All Data Disappear When In Datasheet View

Nov 22, 2013

I have a query that's been working fine for years, however...the powers that be have requested a change. We need to track the lining owners in cars. We've recently gone to SQL on the back end (which I basically know NOTHING about) but I set up the new table, refreshed the connection, etc.

I can see the table fine and it says it has a primary key, auto numbers, etc. however, as you can see from the jpg below when I add the table to the query and link the id as in all the other tables, for some reason, this one makes all the data disappear when in datasheet view.If I delete the table from the query - it all comes back.

View 5 Replies View Related

Append Two Queries - Combining Data Into One Datasheet View

Nov 20, 2013

Is it possible to append two queries? The queries have the same layout and labels...it's just a matter of combining the data into one datasheet view.

The two queries are below:

1)
SELECT prc.Market AS Geography, trp.Product, trp.Indication, trp.[Variable Name], trp.Period, Round(prc.Index*trp.[Variable Value],2) AS [Variable Value], trp.Outlet, trp.Daypart, trp.[Program Name], trp.Len, trp.Creative, trp.Campaign, trp.[Campaign Name], trp.[Media Type], trp.Vendor, trp.Channel
FROM tblTRP AS trp, tblTRPpercent AS prc
WHERE (((trp.Indication)=prc.Indication) And ((trp.[Media Type])=prc.Type) And ((trp.Geography)="National") And ((trp.Month)=prc.Month));

2)
SELECT prct.DMA AS Geography, tv.Product, tv.Indication, tv.[Variable Name], tv.Period, Round(prct.percentUniverse*tv.[Variable Value],6) AS [Variable Value], tv.Outlet, tv.Daypart, tv.[Program Name], tv.Len, tv.Creative, tv.Campaign, tv.[Campaign Name], tv.[Media Type], tv.Vendor, tv.Channel
FROM tblTVOtherMetrics AS tv, tblDMApercent AS prct
WHERE (((tv.Geography)="National"));

View 3 Replies View Related

Data From Form Not Showing In Datasheet View In Table

Dec 21, 2004

In a table I have three fields 1. City - which is a combo box linked to a query, 2. State - a text box, 3. postal Code - a text box

When i put them on a form I use the info selected in the City box to populate the info in the State and Postcal Code boxes.

The Control source for the city is SELECT tblPostcodes.ID, tblPostcodes.Pcode, tblPostcodes.Locality, tblPostcodes.State FROM tblPostcodes;

Then on the form i put the control source of the state box as =City.column(1) and Postal code as =City.column(3)

This works fine on the form- and the information is retained - but the datasheet view of the table does not record either the State or the Postcode data that was entered. Is this because I put the control source on the form and the table is not recognising it? if this is the case how do enter it from the table?? really confused...

View 2 Replies View Related

Queries :: Calculate A Value In A Column In A Datasheet View Of A Query?

Oct 20, 2014

tell me if it is possible to calculate a value in a column in a datasheet view of a query. i.e. I want to take a value in 'Column A' and subtract the value in 'Column B' to create a value in 'Column C'?

View 2 Replies View Related

How Do I Show The Subform As Form View Instead Of Datasheet View :confused:

Jul 19, 2007

See title :)

I have seen that in some sample db's rightclicking the mouse showed the menu with an option to check or uncheck the dataview option, unchecked the formview was applied, but when i 'just' import the subform, i cannot find somewhere the possibility to change from dataview to formview.

Maybe someone can help me with this, probably very simple(?), question?

View 4 Replies View Related

I Want Datasheet View... Why Does It Keep Showing Form View?

Apr 6, 2006

I have a form which is opened with a filter from another form. For some reason it views the form in form view, although it was set up as datasheet view. I even went to the form properties and the default was datasheet and i made it not to allow other views. This still didnt solve it. I want it to be in datasheet view because i want to show multiple records at the same time.

If u kno how i could resolve this please offer ur help

thanks

View 6 Replies View Related

Queries :: Return Record In Datasheet View

May 21, 2013

I have a query that returns records in datasheet view. I need a field to accept the user selection from a drop down, then save that to a table. The query is based on a couple queries and one of those queries is based on the table i need to save the user input into. When i make a selection from the drop down list it puts the selection in that field for all the records and then doesn't save.

View 1 Replies View Related

Queries :: Datasheet View - Expr1003 Appears Instead Of Field Name

Aug 1, 2014

I have windows 7 access 2013, I had a query made, and wanted to add fields to it, so i went into the SQL and added several fields. Only the first one i entered didn't work and on the query is called "Expr1003" when in datasheet view. Its right in layout view, and even when i tried adding the same field in layout view, it made it "Expr1004". spelling is correct, in both source table and query, i don't know why this field doesn't work especially when the others did.

View 14 Replies View Related

Tables :: Access 2007 / Data Not Visible In Table Datasheet View?

Dec 10, 2012

I have recently been modifying an existing Access 2007 database, everything seems to be working correctly, except that the main table holding most of the data is acting strangely.

If opened in database view, it is completely blank - no column headers, no data. Record count is correct and I can step through/select records, but there's just nothing visible at all.

The data clearly still exists as it can still be viewed in forms / queries / reports.

Only thing I can think of is that I have deleted a bunch of outdated queries & reports and it's possible that one or more of them may be cross-referenced with the table in another query, but still can't see why that should be causing this problem.

View 2 Replies View Related

Tables :: Datasheet View Of Table Inside Subform Not Showing Sorted Data

May 25, 2015

I have a linked table(tblxyz) having property set as ORDER BY ID DESC, ID is autonumber, so my table view gives me latest record on top.

Now I have a subform , where i am calling this Table.....

[Forms]![MainForm]![Sub_DisplayFm].SourceObject = "Table.tblxyz"

This gives me datasheet view of the table inside subform but its not showing sorted data

Interesting thing is it give sorted data view when my table is not linked and is in same access file.

View 4 Replies View Related

Fields Different From Form To Datasheet View

Dec 27, 2006

hello,

I also posted this in the report section, but it doesen't seem like the readers over there have any answers. I'm hoping maybe query people will.
I'm working on someone elses database, and I'm not too familiar with access.

He's got this form called Customer_Select, and when you click on a check box for a customer, it's option value is recorded in a field called Product, which then corresponds to the product/customer id located in a table called CustomerCharacteristics.

The problem is that I just realized that this Product field existed. When I view the form as a datasheet, I see the fields: Product, Lot_Nr, Version:, and Last Update:
However, when i look at the field list for the same form in Design view, I get: DateTime, VersionDisplay, and Description.

Does anyone know what's going on here? I need to reference the Product field in a query I'm modifying, but the expression builder can only 'see' the fields that are visible in design view.

Any help would be greatly appreciated.

Thanks

View 1 Replies View Related

Can You Color A Form In Datasheet View?

May 2, 2006

I have a form that displays inventory using a datasheet format..

is there a way that i can make it so that if that record has a sales order number (because it is sold) then highlight that record...

View 2 Replies View Related

Queries :: Multivalue Field - Values Revert To Primary Key In Datasheet View When Saved

Dec 23, 2013

A have a query that selects a multivalue field. The query forms the record source for a subform. The text values in the multivalue field are displayed in the query, but when I save this and view the data in the subform datasheet view the values revert to the primary key values. They are 1,2,3,4 instead of the text values

View 3 Replies View Related

Using Subform In Datasheet View To Open Other Form

Oct 21, 2006

Well, I couldn't find this using the search, so here it goes:I have a form in which I enter data to create a new client. Within that form I have a subform in datasheetview which is based on a query which holds/retrieves certain (important) fields from a table that holds case info. So in that one view the client data is displayed on the form and all cases and the most important data from those cases is displayed nicely in one screen.Now, when a client calls I navigate to that client and see all previous and all current cases that are open and/or closed for this customer. So the customer says case this and that number is the case I need to discuss with you. Now, what I would like is to be able to click or double click anywhere on the line that, for instance, says case nr 55, so that the form(s) belonging to case nr 55 pop up and all info concerning that case is displayed and can be edited as needed. My problem is: I'm still a newbie and if it was a simple thing like using the on_click event to open the form that's needed, I would not have to post this question. But that can't be done (as far as I know) since the subform is based on a query which is displayed in dataview.Am I overlooking a very simple solution to this problem or is it really going to be as difficult as I think it's going to be?For clarification of the idea I have included a screenshot of the form in question. I assume there are tons of databases out there which use such a layout or idea as this one. Please, never mind the buttons etc. It is still a work in progress. ;)

View 12 Replies View Related

Forms :: Open A Form In Datasheet View

Nov 4, 2014

i have the following code and i want that the form opens in datasheet view but i don't know how.

On Error GoTo Err_Befehl14_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Copy Of frm_logistik_zeitfehlerein"

[code]...

View 14 Replies View Related

Forms :: Opening A Form In Datasheet View

Sep 17, 2014

I'm trying to open a form in datasheet view using the following code

Code:
Private Sub Run_Activity_Duration_Totals_Click()
DoCmd.OpenForm ("frm_Activity_Duration_Totals_25_Hours"), AcFormView = acFormDS
End Sub

I keep getting a message saying

Compile Error: Type Mismatch

and the equals sign is highlighted in my code.

View 2 Replies View Related

Forms :: Navigation Form In Datasheet View

Nov 21, 2014

I've created a Navigation Form and one of my tabs brings up another form bla bla but what I want is to bring this form up in datasheet view...is there a setting for this or due I have to create a query to get the look that I want?...

The Form that I attached to the tab when opening it up by itself (out of the Nav form) comes up in a datasheet type format,and when I open it up in design view it changes from the datasheet type format to texts boxes stacked on top of each other. This is also how it opens up in the Nav form...

Does it have to do with how the form I'm putting in the nav form was created?...style wise...

View 3 Replies View Related

Forms :: Possible To Show Form Header In Datasheet View?

Sep 9, 2014

I have a form with a query as rowsource.When I open the form in data sheet view form header is not showing(Though it is visible in form view).Is it possible to show the form header in datasheet view?

View 2 Replies View Related

Forms :: Datasheet View Form Without Application Title Bar

Aug 20, 2014

Is there any possibility to have the application title bar on data sheet view form? I need it to close the form and return to main switchboard using the Close button.

View 10 Replies View Related

Forms :: How To Display Form In Datasheet View From Switchboard

Jul 31, 2015

Have created a form to display/change table info in Datasheet View and added the form to a switchboard.When selected from switchboard, it displays a single record. When executed from the Forms (objects), it displays in Datasheet view.? How can I get it to display in Datasheet View from Switchboard?

Default view = Datasheet
Allow Form View = Yes
Allow Datasheet View = Yes

View 1 Replies View Related

General :: Slow Datasheet View / Split Form

Nov 14, 2012

I have a database i have been working on (access 2007). In the past I have been using a list box to select records. Now I would like to use the datasheet view or split form view. Everything seemed fine until I moved to linked tables.

My problem is, with the same query, the listbox is lightning fast at changing the recordsource.

When I change the recordsource on a datasheet view or split form, it takes... ages and shows "Calculating.." On larger recordsets it freezes access.

View 3 Replies View Related

Forms :: Datasheet View - Specify Ribbon To Open On Form Load

Aug 11, 2015

When you open a form in datasheet view, the default ribbon is of course the "Datasheet" tab. I would rather have the "Home" tab ribbon open up, because I have one field in this form set up as hyperlinks to open another form, so the filter and search buttons would be more useful to the user. I'd rather not go to the trouble to create a custom ribbon, so is there anyway to set the default ribbon tab to "Home" when you load the form? There is a ribbon property for the form, but I don't know the reference name for the tab.

View 5 Replies View Related

Queries :: Displaying Query Results On Datasheet Form

Jun 24, 2014

I have a simple database with a query that "SUM"s an amount.

I created a form with a sub form that is linked by Account number. I want to be able to open the form in datasheet format and it to display the SUM value from the query.

When I open the form it responds with #Type until I click the + symbol to open the linked query then it updates the #type field with the data from the query.

View 14 Replies View Related

Forms :: From Pivot View To Filtered Datasheet View

Nov 14, 2013

I want to "zoom" to the underliyng data from pivot view. When in excel someone doubleclicks a field in a pivot table, it automatically creates a table containing all the lines that field were made up from. I want to achieve the same behaviour in Access.I started to think towards a VBA coda, that could be initiated from the form's double click event. It should go to datasheet view with the prpoer filter criterias.

View 1 Replies View Related

Forms :: Click On ID In Subform Datasheet To Open Single Form View

Apr 3, 2014

I have a Project form, which holds StockArtProduction_Subform in datasheet view. I need for them to be able to click on the ID in the StockArtProduction_Subform datasheet and it open a single view form (StockArtProduction) with the correlating ID.

Ideally, it would also work for new entries in the StockArtProduction_Subform, but the StockArtProduction form would have to "auto populate" (did I use it right?) with the ID of the currently open Project form.

View 14 Replies View Related







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