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

Form Detail Section formatting

Access2003 and XP
In the detail section of a continuous FORM I have a textbox named
txtTraceType that can have a value of "B" or "L" or "N".
For each record in the detail section I want lines [lineLotNumber] or
[lineSerialNumber] to become visible based on the value of
txtTraceType.

if txtTraceType.Value = "L" then lineLotNumber.Visible = True
or
if txtTraceType.Value = "N" then lineLotNumber.Visible = False and
lineSerialNumber.Visible = False
or
if txtTraceType.Value = "B" then lineLotNumber.Visible = True and
lineSerialNumber.Visible = True

This logic works in a reports Detail_Format section but in a FORM in
behaves differentely.

I'm using the lines as visual cues to what records need Lot Numbers or
Serial Numbers or No data entered into textboxes above these lines.
The cue is a kick back to printed forms manually entered.
Thanks, RICK

Jun 2 '06 #1
3 2470
I just tested Line.Visible = false, and it made a line go away on my
form. The problem may be in your comparison. Try this:

If StrComp(txtSomething, "B") = 0 Then
lineSerialNumber = true
End If

Jun 2 '06 #2
I just tested Line.Visible = false, and it made a line go away on my
form. The problem may be in your comparison. Try this:

If StrComp(txtSomething, "B") = 0 Then
lineSerialNumber = true
End If

Jun 2 '06 #3
If your dealing with a continuous form bound to a table with many
records your solution acts the same way. All records are visible or not
based on the value of the first record.

Rick

bl*****@carolina.rr.com wrote:
I just tested Line.Visible = false, and it made a line go away on my
form. The problem may be in your comparison. Try this:

If StrComp(txtSomething, "B") = 0 Then
lineSerialNumber = true
End If


Jun 2 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eddy Bee | last post by:
Hi there, I'm encountering an inexplicable problem with page formatting in reports. Here's the easiest way to explain it: The Detail section of my report contains two elements: And let's...
0
by: Uttam | last post by:
Hello, I have a main form consisting of a Header, Detail and Footer. The Detail consists of a Continuous Form of records. Associated with each record is a "Select" Button for Selection. ...
2
by: Salad | last post by:
Is there a way to determine which section of a form a control is located in code....besides using the tag property?
5
by: Kevin Myers | last post by:
How can one obtain obtain the height of a MS Access 2K form? There is a width property, but I don't see a corresponding height property. I need to obtain the height of the form so that I can...
1
by: Tom | last post by:
In the Developers Handbook, Getz provides a way to create a survey report that displays either a line, Yes/No or multiple choice for each question. It's done by placing three controls (one for each...
14
by: Mark | last post by:
How can the instances of a textbox control on an continuous form be addressd? Can a specific instance be addressed? For example, a continuous form has ten records. How can the textbox for the...
4
by: Lyle Fairfield | last post by:
I had a Sproc which returned a field called Details. I had the Form Wizard create a continuous form with the Sproc as the RecordSource (as a shell for me to modify). I renamed the Details...
8
by: fonzie | last post by:
Is it possible to have a data entry form where the information is stored in several different tables (5 or 6)? I have an inventory database where Table1 stores all of the data common to all...
2
by: keri | last post by:
I would like to set up conditional formatting on a form. One of the fields on the form is a date (). If the calldate field is over 365 days ago I would like all the other fields on the form line...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: 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
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.