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

How to make a subform's field clear on open

Fspinelli
Hi again!

I have a form (parent) that has a subform (child). I know how to make it so the parent form's feilds opens up null, but I need the subform (child) to open up null, too, when this form opens up.

From the parent form the subform populates symbols based on the parent form which has some combo boxes to choose from and one text box to enter a number into. When the end user enters or choses the data in the parent form a query makes symbols out of that data in the subform.

I don't know how to make the subform clear out on open.

Whilst in the subform I clicked on it and On Open I placed code:

me.bbl = null

but that didn't work (bbl is a field name)

and I tried in the parent form

me.subformname.requery

didn't work

and I even tried in the parent form

me.subformname.bbl = null

It didn't work either, but I really don't know if that's a real code, but I tried it.

In a nutshell I need the parent and the child fields on open to be clear (null). The child (subform) is a query.

Suggestions?

thank you very much!
Faith
Nov 10 '10 #1

✓ answered by TheSmileyCoder

Can you not simply set teh subform to Date Entry only? It depends on what your requirements are and you have not described that accurately.

Also you should not use field names in code, but control names. So say bbl is the field in the table, and you have a control bound to that field, you name the control: txt_bbl (if its a textbox) and use that in code:
Expand|Select|Wrap|Line Numbers
  1. me.txt_bbl=Null

2 3803
TheSmileyCoder
2,322 Expert Mod 2GB
Can you not simply set teh subform to Date Entry only? It depends on what your requirements are and you have not described that accurately.

Also you should not use field names in code, but control names. So say bbl is the field in the table, and you have a control bound to that field, you name the control: txt_bbl (if its a textbox) and use that in code:
Expand|Select|Wrap|Line Numbers
  1. me.txt_bbl=Null
Nov 11 '10 #2
Thank you.
Nov 11 '10 #3

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

Similar topics

5
by: datactrl | last post by:
Hi, all Is there any way to make a SELECT field in HTML as a read only field? Jack
0
by: PeteCresswell | last post by:
I'm doing the bookmark thing to force the current record in a subform and it works....almost. Problem is that the subform then scrolls so that the newly-selected field is at the very top of the...
2
by: chris vettese | last post by:
I've been having trouble with this for a long time. I have a form that has many subforms. In the subforms I have unbound text boxes in the footer that sum a field. I want to Display this sum on...
1
by: scolivas | last post by:
I want to make a button that will open a specific file folder that contains some crystal reports. I don't want to pick a report ...just want to "lead the user to the folder" with just a click... ...
4
by: Don Do | last post by:
Help I built a form/subform/subsubform setup using the access forms wizard. I have a table1 = parent, table2 = child, table3 = (grandchild?). There will be multiple records in table2 that tie...
2
by: zeeshansohail | last post by:
Hi to everybody, I want to know that how can we make a filed DISABLE whenever we run a FORM. I know about SET-ITEM-INSTANCE-PROPERTY but don't know how to use it, please make it clear. I...
0
by: thefredzx | last post by:
i have a problem for aplication of apriori algorithm in datamining..my problem is how to make an additional field in database? for example: I have some data like shown below:...
3
by: Aaron Gray | last post by:
I want to make a form field take focus ideally coded in the form :- <form method="post" action="index.php?action=newname"> <input type="text" name="name" size="40" value="" /> <input...
1
by: ckrows | last post by:
Hi guys, I have a parent form that displays the subform. The subform query has a link back to the original ID. I was having issues keepign them in sync, since every parent may not need a...
1
by: Moish | last post by:
I have a form that does not have any bound fields. I want to open a subform on that form to a specific record based on the value of an unbound field on the main form. Obviously the subform is not...
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...
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?
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
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
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.