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

Problem with forms

I have a table which is to hold 70 memo fields to contain notes on data
changes to corresponding fields in a form. The problem is I dont want to
have to create 70 forms to input notes into.
Is it possible to have one form that somehow opens up the correct notes
field to input the notes. I was thinking along the lines of having a button
against each line of data which then opened this form.
Below is the form layout with the notes field possibly being a link to the
notes entry form.

project1 date1 date 2 date3 notes
project2 date1 date 2 date3 notes
project3 date1 date 2 date3 notes
project4 date1 date 2 date3 notes

etc
Nov 13 '05 #1
2 1539

"David" <wi**********@yahoo.co.ik> schreef in bericht news:d8**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
I have a table which is to hold 70 memo fields to contain notes on data
changes to corresponding fields in a form. The problem is I dont want to
have to create 70 forms to input notes into.
Is it possible to have one form that somehow opens up the correct notes
field to input the notes. I was thinking along the lines of having a button
against each line of data which then opened this form.
Below is the form layout with the notes field possibly being a link to the
notes entry form.

project1 date1 date 2 date3 notes
project2 date1 date 2 date3 notes
project3 date1 date 2 date3 notes
project4 date1 date 2 date3 notes

etc


If you have 70 memo fields in a table, IMO you should reconsider your design.
You are doing a better job with 70 records in a TblMemo I guess.
If there is only *one* memo for each project, than you might put the memo field in the same table where you store your projects.
In any case: only use ONE form to edit the memo.
Open the form with a where-clause (or a filter)
like: Docmd.Openform "FrmMemo", , , "MemoID = Me!ProjectID"

HTH
Arno R
Nov 13 '05 #2
It looks like you are looking for a generalized comment that
you can attach to multiple fields. I agree with Arno's
suggestion that you have a separate table for those
comments. It could look someting like this:

Table: tblEditComments
— MemoPK (Autonumber)
— TableID (Text: The name of the table containing the data)
— RecID (The format and values of your record Primary Key)
— FieldID (Text: The name of the field you are commenting)
— FieldVal (Text: snapshot of current/previous values for
context)
— CommentText (Memo)
— CommentDate (Date/Time: automatic date/time stamp)

1. I'm assuming that you are not using composite primary
keys.
2. I realize that by encoding the names of tables and
fields, there is a danger of getting out of sync when
renaming those entities.

To Arno's form suggestion, I would add that you look at the
OpenArgs argument, to give the form some context of the data
you are trying to comment. I'm guessing that you would want
to make the previous comments read-only, yet still have the
ability to add new comments.

Good luck!
--
Kevin Nechodom
University of Utah Hospital and Clinics
Kevin dit Nechodom ack hsc dit utah dit edu
"Call me paranoid, but I think you are reading what I'm
writing!"
Arno R<ar***********@tiscali.nl> 6/12/2005 4:38 AM >>>

"David" <wi**********@yahoo.co.ik> schreef in bericht
news:d8**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
I have a table which is to hold 70 memo fields to contain

notes on data
changes to corresponding fields in a form. The problem

isI dont want to
have to create 70 forms to input notes into.
Is it possible to have one form that somehow opens up

the correct notes
field to input the notes. I was thinking along the lines

of having a button
against each line of data which then opened this form.
Below is the form layout with the notes field possibly

being a link to the
notes entry form.

project1 date1 date 2 date3 notes
project2 date1 date 2 date3 notes
project3 date1 date 2 date3 notes
project4 date1 date 2 date3 notes

etc


If you have 70 memo fields in a table, IMO you should
reconsider your design.
You are doing a better job with 70 records in a TblMemo I
guess.
If there is only *one* memo for each project, than you
might put the memo field in the same table where you store
your projects.
In any case: only use ONE form to edit the memo.
Open the form with a where-clause (or a filter)
like: Docmd.Openform "FrmMemo", , , "MemoID =
Me!ProjectID"

HTH
Arno R

Nov 13 '05 #3

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

Similar topics

1
by: Rhy Mednick | last post by:
I'm creating a custom control (inherited from UserControl) that is displayed by other controls on the form. I would like for the control to disappear when the user clicks outside my control the...
3
by: James Spibey | last post by:
Hi, I have an MDI application which has aboout 10 child windows. The way the app needs to work is that only one window should be visible at a time and it should be maximized within the parent...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
3
by: pnp | last post by:
Hi all, I have developed an app in C# and I have used some of the Infragistics components in it. The problem is that while one is playing with the windows within the mdi container exceptions occur...
4
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
30
by: dbuchanan | last post by:
ComboBox databindng Problem == How the ComboBox is setup and used: My comboBox is populated by a lookup table. The ValueMember is the lookup table's Id and the DisplayMember is the text from a...
0
by: mjsterz | last post by:
I've been working with VB .NET for less than a year and this is the first time I've posted on one of these groups, so let me apologize beforehand if I'm being unclear, not posting my issue...
5
by: Vibhesh | last post by:
I am facing problem with TimeSpan structure when DirectX is used. Following is the sample code that causes the problem: ...
3
by: Gerrit | last post by:
Hi, I try to learn programming in c# with databinding controls. Now I have a problem with a ComboBox with the advanced properties for databinding, I want to set the DataSourceUpdateMode to...
6
by: Scott Gravenhorst | last post by:
Windows XP SP3 My application is set to open a SaveFile dialog when an exit is requested. When I click the app's close button, the save dialog opens, but when I click to change the folder, the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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
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...
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
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,...
0
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...

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.