473,471 Members | 2,533 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

changing recordsource and control source of a subform

553 Contributor
Hi

I have a subform on a form, which has its recordset set. Textboxes on this subform has thier control source set as well.

I was wondering if it would be possible to change both the recordsource and controlsouce of textboxes in run-time.

The reason for doing is to keep only 1 subform instead of 2.

It doesn't seems to work in my program. Any suggestions?

Thanks
Qi
Sep 28 '07 #1
4 2430
questionit
553 Contributor
Solved

Experts here are of no use.,

Qi
Hi

I have a subform on a form, which has its recordset set. Textboxes on this subform has thier control source set as well.

I was wondering if it would be possible to change both the recordsource and controlsouce of textboxes in run-time.

The reason for doing is to keep only 1 subform instead of 2.

It doesn't seems to work in my program. Any suggestions?

Thanks
Qi
Sep 28 '07 #2
missinglinq
3,532 Recognized Expert Specialist
Since you're obviously so smart, perhaps you should have tried a little harder to solve your problem before posting it here!

Linq
Sep 28 '07 #3
questionit
553 Contributor
It was just a pulling of a leg and also when for some reason you are not getting things right and you get frustruated then anyone would like to seek someone's help at that situation. This is what i did.

Glad to hear from one of the experts after a long time.

My one question is still un-answered - setting ControlTipText value from a variable.. any one please ?


Thanks MisslingLinq

Qi

Since you're obviously so smart, perhaps you should have tried a little harder to solve your problem before posting it here!

Linq
Sep 28 '07 #4
Lysander
344 Recognized Expert Contributor
Solved

Experts here are of no use.,

Qi
I wish you would post the solution, cause I have the same problem and am tearing my hair out.

I've tried
Me.fsubPostPregnancyDataEntry.RecordSource=
and get a compile error, 'Member not found'

If I type Me.fsubPostPregnancyDataEntry. then sure enough RecordSource is not in the list of options.
Nov 8 '07 #5

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

Similar topics

7
by: Nicolae Fieraru | last post by:
Hi All, I am trying to change the rowsource of a combobox when I click on it. I played with many events, associated with the form and the combobox, but still haven't figured out what is the way...
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...
1
by: CSDunn | last post by:
Hello, In an Access 2003 Project that uses a SQL Server 2000 database as its data source, I am attempting to set the RecordSource property of a sub report called 'RptTeacherHistory2' that appears...
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...
9
by: robert d via AccessMonster.com | last post by:
I'm not sure why the following isn't working. The subform loads correctly, but no data is displayed. I'm certain that there is data and I have checked that the SQL statement does in fact return...
2
by: Bill R via AccessMonster.com | last post by:
I'm trying to use the same subforms for two different mainforms. The first main form is "frmSwaps" and the second main form is named "frmSwapsLive". The recordsources for the subforms have...
8
Megalog
by: Megalog | last post by:
Hey guys.. my turn to ask a question: I'm having a weird issue with a form I've reworked. This form has a combo box, which when used is changing the recordsource of a subform. This subform has...
3
by: Simon van Beek | last post by:
Dear reader, How to change the RecordSource for a subReport. For forms the syntaxes is:
19
by: postman | last post by:
I have a parent form bound to a recordsource and several controls are bound to fields in that recordsource. There are also several unbound controls that are used to display various data in a...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.