Solved

weird problem on subform after clicking Field Header

Posted on 2015-01-13
10
165 Views
Last Modified: 2015-01-14
access 2010.
userform.
subform

I have 3 subforms on my main form.

2 of them i have no problem with.
When i click on a column Header for a field it keeps invoking an query to run.
All i want to do id sort that suform by the Column header i'm picking.
If i right click on the Column Header. No Problem.
it only if i directly click on column Header ??


Thanks
fordraiders
0
Comment
Question by:fordraiders
  • 5
  • 2
  • 2
  • +1
10 Comments
 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 167 total points
ID: 40547207
Do you have code that runs in that form? That's about the only way it would launch a query - unless you're experiencing corruption, of course.

Have you performed maintenance on the database lately (i.e. compact, etc)?

Are your Windows and Office installs up to date?
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 167 total points
ID: 40547210
there must be some code running on the click event of the header.

open the subform in question in design view, select the column header and hit F4
in the Event tab see what is on the Click event
click on the (...) to go to the vba window and copy the codes behind the click event and post here.
0
 
LVL 3

Author Comment

by:fordraiders
ID: 40547504
scott and rey
nothing there ...sorry.
queryrunning.png
0
 
LVL 3

Author Comment

by:fordraiders
ID: 40547505
just an fyi...
if i right click and bring up the shortcut menu...and click descending...WORKS FINE. ??
0
 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 166 total points
ID: 40547590
I'm confused...
All i want to do id sort that suform by the Column header i'm picking.
If i right click on the Column Header. No Problem.
it only if i directly click on column Header ??
Currently in Access you cannot simply "Click" on a column header to have it sort (like you can in some other programs, ...ex.: Outlook)
You either have tho right-click on the column header and select: Sort...
Or click directly on the small arrow:
arrow and select: Sort...

When i click on a column Header for a field it keeps invoking an query to run.
Then like the others have posted, ...it seems that you have some type of code on the subform,
...that is the only way and code, or query will run...

Can you post a sample database that exhibits this behavior?

JeffCoachman
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 3

Author Comment

by:fordraiders
ID: 40547694
Jeff , I did click where you said to click. It still runs a query.
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 40547700
upload a copy of the db
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 40547755
I will step aside now, ...when you post a copy of your DB, ...I am sure that Rey or Scott will be able to assist....

Jeff
0
 
LVL 3

Author Comment

by:fordraiders
ID: 40548283
I found the problem.
I researched and found no queries.

I went to each field and looked at the property "FilterLookup"  ALL of them were set to Default View.

I changed it to "Never"
now when i click the small down arrow i get the shortcut window and and sort asc or desc
0
 
LVL 3

Author Closing Comment

by:fordraiders
ID: 40548947
Thanks to all for your input. Sorry I cant post a db. all my databases are very large.
But i just keep seeking after the events/properties.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now