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

Autofilling a form

Hi all,
I am coming back to Access after a few years away from it so please be kind. What I am trying to figure out is there a way for a form to be autofilled. What I am building is a database that can be updated by professors. They want to comment on a student from time to time. So if they comment on it today and then decide to comment on the student again, they would know not to comment in the same memo box as before (w/o having to get an error after they fill it out) and comment in the memo box below it.

Any ideas would be welcomed!
Jul 23 '07 #1
3 1694
nico5038
3,080 Expert 2GB
Probably best to have a separate Memo table to keep track of the memo's over time.
Just create a tblStudentMemo with the studentID and a DateMemo field.
The dateMemo field can be set to be filled with default =Now() so the value will be filled automatically and all that's finally needed is a subform (change the form format from datasheet to continuous when you want) that's showing the tblStudentMemo fields in decending order. Thus the most recent entry will be visible first.

Nic;o)
Jul 23 '07 #2
Thank you for the response Nico! I am little confused though.

I don't see what you are suggesting would indicate to the user that the box is previously filled. Right now, I have things setup like you suggested (my memo table has the values, studentid, advisor1, date1, comment1, advisor2, date2, comment2, etc, etc for one given record). There is no problem when I enter in the first comment but when I enter in the second (playing the part of the uninformed professor) i purposely put the new comment into the first memobox - comment1 - and as expected i get an error.

Is there a way where that will automatically be blacked/grayed out because data is already present in there? even if i did your suggestion of making the date to say =Now, won't the date for date1 (the first date box for comment1) just change each time as the entire form will always be blank when its first opened up? or would that date always be fixed (so on july 5th it will say july 5th and stay that way on july 8th)?

If I am confusing you, I am sorry but I do appreciate your help.
Jul 23 '07 #3
nico5038
3,080 Expert 2GB
You'll need to start thinking in tables and table rows. :-)

Never use fields for storing multiple values of the same data (here your Memo's).

Use two tables:
1) tblStudent
2) tblStudentMemo with fields like:
studentid,
advisor,
MemoDate,
MemoText

In tblStudentMemo you use the unique ID of the student to "link" the memo's to the student.
When you create a Student form, you can than add a Memo subform and Access will synchronize the Memo's to be only those of the specific student.

Clearer?

Nic;o)
Jul 23 '07 #4

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

Similar topics

3
by: John | last post by:
Dear all, It been more than 3 days I am trying to debug this program, I interpret it using activePerl and it is giving (perl -wc code_process.pl) no error syntax but when I put it online, change...
5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
4
by: Targa | last post by:
Trying to total some price fields in a form but doesnt work when all the referenced form fields dont exisit. This is for an invoice - pulled prom a database and the form doesnt always contain the...
18
by: DNK2007 | last post by:
Hi all, How to do autofilling of a web form in firefox using javascript. ie through java script program should do autofilling of the web form. Thanks DNK2007
3
by: DNK2007 | last post by:
Hi all, Is it possible to write a perl program that do autofilling of the login webform(username, password) of other domain (say hotmail.com). Assume domain name, username, password are passed as...
33
tdw
by: tdw | last post by:
I have a customers table that has a couple of checkbox fields. I also have an orders table with those same checkbox fields (though with a slightly different name). This is not duplicitous as I only...
5
by: z.ghulam | last post by:
Hi, I have a subform in a main form. When I create new records in the subform I would like the Subform. to autofill with the MainForm. It sounds quite simple, but ive been bustin my brains...
1
by: cllark7 | last post by:
Currently I am creating a database that has multiple tables. I would like to create a form that is populated with default values each time a new record is entered. Here is an example of what I mean....
9
by: Ledmark | last post by:
Hello - I've made a form with a subform of the same table, which is for Dr's notes. On the subform I have the query sorting in decending order and a criteria to enter a patient's name so the last...
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
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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.