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

Designing a continuous form for entering score data

88 64KB
Hi I am a beginner using Access 2013

I am trying to design a data entry form for one of my tables which has 5 fields, let's call them: Patient ID(FK), Date, Item Number, Item Name, Rating

The form has to collect 19 individual item ratings (scored between 1-5) for one patient on one date.

I can't avoid inputting the Patient ID and Date 19 times so would appreciate some advice please

Thanks
Sep 24 '14
70 5407
Hargo
88 64KB
It's an Autonumber with eight zero formatting
Oct 1 '14 #51
twinnyfo
3,653 Expert Mod 2GB
Remove the format and see if that makes a difference. But, it shouldn't make a different if it is a numerical value. And--it shouldn't be part of the query/record source anyway. patient ID is the same value--even though it is displayed as the SG Number.
Oct 1 '14 #52
Hargo
88 64KB
The PatientID = 0 is no longer a problem


I removed the Link Master/Child fields entries from the subform and it stopped the Parameter boxes and the message

Now it's the buttons doing zip and the blank subform
Oct 1 '14 #53
twinnyfo
3,653 Expert Mod 2GB
Make sure that [Event Procedure] is in the "On Click" events for those buttons.
Oct 1 '14 #54
Hargo
88 64KB
Okay :) so now we just have the mystery of the blank subform - button worked but was appending 0(Zero) records due to blank form


Can't help thinking it's the PatientID = 0 part again - exactly what happened to the other form when I used = 0 and/or = '' the other day (Friday?)
Oct 1 '14 #55
twinnyfo
3,653 Expert Mod 2GB
Review Post #44. Between lines 27 & 28 and Lines 42 & 43, insert the following statement:

Expand|Select|Wrap|Line Numbers
  1. Debug.Print strSQL
Make sure your immediate window is visible.

Open the form, select a patient, click Baseline (append 0 records), click Follow up (Append 0 records).

Copy and paste the information from the immediate window.
Oct 1 '14 #56
Hargo
88 64KB
I selected Patient and pressed Baseline - back came the Parameter box but with the selected PatientID within it - I tried just pressing ok and adding a date (only parameter i thought could be missing) but the same occurred each time - see attached


Soooo close now!!
Attached Files
File Type: doc Response to Clicking Baseline.doc (518.5 KB, 94 views)
Oct 1 '14 #57
twinnyfo
3,653 Expert Mod 2GB
Send me a screen shot of the properties for your Combo Box for the Patient.

Please include also the query used as its row source.

Still need the value generated by the Debug.Print.... (from your VBA editor, Ctrl-G to show the Immediate Window)
Oct 1 '14 #58
Hargo
88 64KB
Immediate window contents too wide for screen so did a copy and paste and included in attached


I'm leaving for the day but will pop on Bytes tonight at home (hopefully I can get the DB open on my laptop!!)

Did you get a look at previous thread (Crosstab query once this form works!! haha) ?
Oct 1 '14 #59
twinnyfo
3,653 Expert Mod 2GB
Bound column on the Combo box should be column 1, not 2. It is looking for a text value, which the value of the combo box should be a number (The admissions key).... That should do it!
Oct 1 '14 #60
Hargo
88 64KB
I think we're nearly there thanks to all your efforts (can't thank you enough)

Follow up works fine, although not sure just closing form afterwards will sit too well with users as I had to open table to check something had occurred!! - can a faux save button be implemented? - as well as offering some reassurance it could return focus to Patient ID and clear the form to give impression that 'something has happened' - this would also benefit those wishing to input multiple assessments as they could just select another PatientID (I realize they can just do this but its good to reassure imo)


I probably could have a go at this BUT I don't want to ruin what I already have by slipping duff code in willy nilly!!!

Especially as Baseline doesn't work properly - fsubAssessment doesn't appear so HoNOS is appended with 19 Zeroes for the ratings - it does have the Admission Date right though

Finally, given that Assessmentdate control is NOT used, is it advisable to lock it? - would it interfere with working? Might user entering a date interfere more?

The light at the end of the tunnel has arrived :)

Cheers twinnyfo
Oct 2 '14 #61
twinnyfo
3,653 Expert Mod 2GB
although not sure just closing form afterwards will sit too well with users as I had to open table to check something had occurred!! - can a faux save button be implemented? - as well as offering some reassurance it could return focus to Patient ID and clear the form to give impression that 'something has happened' - this would also benefit those wishing to input multiple assessments as they could just select another PatientID (I realize they can just do this but its good to reassure imo)
You can have the close button do whatever you wish.....

Especially as Baseline doesn't work properly - fsubAssessment doesn't appear so HoNOS is appended with 19 Zeroes for the ratings - it does have the Admission Date right though
Explain "doesn't work properly". If it is appending 19 zeroes, then you are either telling it to append 19 zeros (which I don't think our code does that), or the default value for the AssessmentRating is 0 (you will have to check the table design).

Finally, given that Assessmentdate control is NOT used, is it advisable to lock it? - would it interfere with working? Might user entering a date interfere more?
Database Desing Rule #217: Allow users to update only the data you want them to change. Corollary: Do not allow users to update any data they don't need to update.

The Assessment Date text box is there so the user can see that this is the date of the assessment they are entering. UNLESS, as mentioned before, there would be the chance that a user would be entering an assessment on a day different than "Today's Date"--which is possible. But, then you would change hte code for the append query to validate that a proper date was entered and use that date in the append query. Options abound.

Hopefully this will bring you closer to the end of the tunnel...

:-)
Oct 2 '14 #62
Hargo
88 64KB
You can have the close button do whatever you wish.....
I realise this but I think I'd prefer a Save button that 'reset' (for want of a better word) the subform to its 'blank' state and set focus to PatientID - although I could add the button to set the focus, I'm not sure how to 'blank' the form particularly as I don't want to to ruin what I have already!!

Explain "doesn't work properly". If it is appending 19 zeroes, then you are either telling it to append 19 zeros (which I don't think our code does that), or the default value for the AssessmentRating is 0 (you will have to check the table design).
When Baseline is pressed the message comes up that you are about to append 19 records (Same as Followup) but when you press ok, fsub doesn't appear so ratings can be input - consequently what is appended is just the INSERT INTO String for PatientID, AssessmentDate, and Item - because fsub didn't appear all rating scores are entered as zero

Surely any default value for AssessmentRating would apply when Followup button used, thus the problem is why fsub isn't opening the same as it does with Followup


You kinda lost me with your last paragraph - is locking the control a good idea or not? Does locking impact on the data within the control or will the appropriate date still appear?
Oct 2 '14 #63
Hargo
88 64KB
Assessment rating did have a default = 0 which I have removed and now the records are appended without any value in Assessment Rating due to fsub not opening/appearing
Oct 2 '14 #64
twinnyfo
3,653 Expert Mod 2GB
I am dumbfounded as to how my forms, queries and VBA works perfectly, but yours does not.

make sure there is no master/Child values in the fsub.

This is driving me nuts; I am sure you too...
Oct 2 '14 #65
Hargo
88 64KB
Amazingly I have solved the problem!!!! Bizarre i know :)

I simply moved the

Expand|Select|Wrap|Line Numbers
  1. dtAssessment = DLookup
part of the code above

Expand|Select|Wrap|Line Numbers
  1. strSQL = "INSERT INTO
and voila!! Obvs had a good teacher ;)
Oct 2 '14 #66
twinnyfo
3,653 Expert Mod 2GB
So you got everything working now?
Oct 2 '14 #67
Hargo
88 64KB
Apart from the Save button which clears the form (cosmetic I know, but I think it will help users a lot) is this a single line of code or huge amounts?
Oct 2 '14 #68
Hargo
88 64KB
Done the save button and it works fine :)
Oct 2 '14 #69
twinnyfo
3,653 Expert Mod 2GB
Great! I hope this project will serve to help your employers on a daily basis!
Oct 2 '14 #70
Hargo
88 64KB
It certainly will thanks twinnyfo, just need the ranking query to work and then query 3 and its showtime
Oct 2 '14 #71

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

Similar topics

3
by: Prakash Wadhwani | last post by:
Is there any EASY way to highlight a full row in a continuous form so that as i navigate up & down the table/continuous form using the arrow keys, the entire line (all fields) get highlighted ? ...
3
by: Damian | last post by:
Hi. Is there a way to programatically populate a continuous form? I have an array of descriptions that I want to display in the continuous form and I have a textbox on the form called...
3
by: vulcaned | last post by:
Hi All, Hopefully I ask this correctly In Access97 I have a continuous form which is bound via a select statement in the record source. Lets say a user starts entering a new record on this...
4
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. ...
20
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
2
by: bobh | last post by:
Hi All, In Access97 I have a form setup as a continuous form several of the bound controls have calculations that are done in the 'after update' event via VBA code and all works fine. My...
1
by: tizmagik | last post by:
I have a combobox on a continuous form that has a recordsource that is set upon Form_Load event via VBA (based on initial form data and external form data entered). For data entry purposes the...
1
by: Catriona | last post by:
I am developing an Access application where users insert bill records for an electricity account by clicking on a new button. The required workflow is 1) New button clicked 2) New record appears...
3
by: ApexData | last post by:
I am using a continuous form for display purposes. Above this form, a single record is displayed so that when the user presses my NewButton they can enter a NewRecord which gets added to the...
2
by: seltzer | last post by:
I am using Access 2000 but I also have the 2003 version. I am working on creating a data entry form in Access for a research study. Since there is a maximum of 255 fields per table in Access, I...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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
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...

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.