473,385 Members | 1,343 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.

Navigation Form --> Where Clause fails

Navigation form ("frmNavigation") --> SubForm ("subFormNav")
Contains "frmContract" with ID "[ContractID]

BrowseTo is working well, but the Where Clause "[ContractID]=182003" fails
It just opens with the first Record.

What I am missing?

Thanks a lot
Apr 10 '19 #1
5 3202
twinnyfo
3,653 Expert Mod 2GB
On the one hand.... I hate Navigation Forms. They add increased complexity to a simple process.

Would you mind posting the actual VBA you are using for this procedure? That might hepp. One ofmy thoughts was that your ContractID might be text value, but in thae case it wouldn't return any records. Is the form "filtering" the first record only, or showing all records but just displaying the first record? That also might hepp.

On the other hand.... I hate Navigation Forms. They add increased complexity to a simple process.

Don't know if that hepps....
Apr 10 '19 #2
NeoPa
32,556 Expert Mod 16PB
Where and how are you using the Where clause?
Apr 12 '19 #3
At first thanks for the quick responses.

The Target form is "frmContract". It is not filtered.
The Target Record is "ContractID" as Long

From the Searchform (also a Navigation Form) SearchButton_OnClick the next code
Expand|Select|Wrap|Line Numbers
  1. DoCmd.BrowseTo acBrowseToForm, "frmContract", "frmNavigation.navSubform", "[ContractID] = " & [ContractID]
The destination form "frmContract" opens in the Navigation form

However, the first record shows. Not the required record.
Browsing is possible, so no filter is set
Apr 12 '19 #4
NeoPa
32,556 Expert Mod 16PB
I'm afraid I can't help much with that. It looks fine to me but I can't check if you have the right values specified in your Method arguments.

Typically I prefer object-relative code rather than interface stuff such as DoCmd etc. Maybe try filtering the form itself if you want just that record available, or use Me.Recordset.FindFirst to navigate to the desired record. Obviously if running from a main form then the reference to the actual form would need to be changed to reflect where it is.
Apr 13 '19 #5
twinnyfo
3,653 Expert Mod 2GB
My only thought is that this is somehow related to the Navigation Form functionality of Access. I've heard of others having similar problems to this when using the BrowseTo Method and filtering for a particular record--even though the method is designed to use this.
Apr 13 '19 #6

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

Similar topics

0
by: araman | last post by:
Hello, I have a form and subform . The Main form contains four boxes to enter criteria for the query that fills the subform. Outside of the navigation form it works great. when i add it to the...
0
by: ahd2008 | last post by:
Good day, I hope there is someone who can help me to resolve my problem. I have created a number of forms, and decided to use navigation from to put them all in the navigation form. In the...
5
Seth Schrock
by: Seth Schrock | last post by:
I have created a navigation form in Access 2010 using the horizontal tabs, 2 levels style. This form is my startup form. In the top row, I have to options. Under each option are several sub-tabs...
4
by: mabsalam | last post by:
I create a form on my database called "FILTER FORM", this form has a textBox and a button. TextBox on the form allows me to enter the criteria I needed for my report and the report will display if a...
1
by: KurtBergman | last post by:
The Access 2010 Navigation form has very little documentation. One issue is moving to a different Tab (subform) in data AddMode. The assumed method is DoCmd.BrowseTo...
4
by: JamesHalko | last post by:
I'm a new user to access so I will try to explain this to the best of my abilities. I created a search form for my records, 'PBTSearchF' When I open the form alone it works fine. However, I want...
1
by: Sarkar | last post by:
Hello, I have a navigation form which includes some forms and reports in the navigation tab to allow switching between forms and reports. The issue is that when the user loads the navigation form,...
2
by: jalbright1957 | last post by:
This topic has quite a few posts with various remedies that I have read but haven't been able to locate one that works with what I am doing. I use Access 2016. I have a navigation form. In the...
0
by: kconnolly | last post by:
Can anybody help me with this: I have the main navigation form and inside each tab of the navigation form, I have another navigation form. How to trigger the tabs of of these navigations form. I was...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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...

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.