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

Updating the recordsource property on a subform

Hi. Hope somebody can help, cos this is driving me insane
Using a Navigation Control form, as the user clicks the navigation button to load the appropriate form, I want to be able to control the form's recordset.
I cant get the following to work - I get an error message to the effect that the object does not exist

Code line as follows, where Me. represents the main Navigation form:
Expand|Select|Wrap|Line Numbers
  1. Me.NavigationSubform.Form.RecordSource = strSQL
Any thoughts?
Aug 24 '19 #1
3 1416
twinnyfo
3,653 Expert Mod 2GB
MFugill,

Welcome to Bytes!

Although it is possible to reference forms that are ona Navigation Form, it can be complex to get it to work correctly. Your syntax is based upon the normal paradigm of the way it “should” work, but it doesn’t quite work that way.

As I have recommended to everyone else who has been on here scratching their heads over Navigation Forms, I recommend you just use standard forms with some type of switchboard Form to select which form to open. This is the way Access was really designed to work and the Navigation Forms have complexities that for its users.

I know there is a thread or two on our forum that addresses the proper verbiage for referring to Navigation sucbforms, and you may be able to find it. But, in the long run, I do think it is simply easier to use standalone form.

Hope this hepps!
Aug 24 '19 #2
Hi Twinnyfo,
thanks for your comments. I have taken your advice and abandoned the Navigation form. Coding is much simpler now
Aug 28 '19 #3
twinnyfo
3,653 Expert Mod 2GB
Glad the advice was heppful! Let us know if you have any more questions.
Aug 28 '19 #4

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

Similar topics

5
by: Mary Litten | last post by:
Hi - (This is my very first post) I have gotten to this point of registering to post because I have been spinning my wheels so long, I believe I am all caught up in the weeds. (and mud) I have...
4
by: Mr. Bungle | last post by:
Just when I thought I knew everything... Does anyone know why sometimes when creating a subform, the RecodSource property is totally unavailable, this appears to happen when you don't use the...
2
by: Bill Agee | last post by:
I have a subform called PaymentDetails and would like to dynamically assign the recordsource after the form/subform is opened. The recordsource for Payment Details is "PaymentDetails_qry" which...
1
by: John Welch | last post by:
In a main form, I build an SQL string based on several unbound combo boxes and then I try to set this string to be the recordsource for a subform like this: Private Sub cmdfind_Click() Dim...
5
by: KenRoy | last post by:
Is there any way to do this without removing the object and then re-adding it with the updated property. Public Structure Blob Public f1 as String Public f2 as Boolean End Structure I then...
6
by: nickweavers | last post by:
I have a combo box that I am using to select a CustomerID from a table called Customers. Once a value has been selected I would like to update the RecordSource property of a sub form called...
2
by: cek172 | last post by:
Is there any way to change the recordsource of a subform from the mainform? I have a subform that I would like to have return data from a table based on selections from multiple checkboxes on the...
0
by: Frank Kolbe | last post by:
I have an access application with a backend Sql Server. All data is passed from the back-end (remote Sql Server) to unbound forms via stored procedure. I then set the recordsource of the form...
7
reginaldmerritt
by: reginaldmerritt | last post by:
Has anyone had this problem before, my search on-line would suggest it not common but I'm sure you fine folk will be able to help. This is the code I have used to change the recordsource on a...
17
by: TGlagowski | last post by:
I am trying to write an MS ACCESS VBA application that has the code in one *.accdb file and the data itself in a separate *.accdb file. I am trying to set the RecordSource property of a SplitForm...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.