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

Form showing up blank

Hi all

Having had such great help from you guys in the past I'm hoping that someone could shed some light on this issue I've been unable to solve.

I have diluted my database down to the objects nescessary to establish the problem which I believe is a relationship/key issue. For your information though, the relationship should be one-to-one.

From the StudentInfo form you can open up the MedicalForm for that particular student. If a medical record has not already been started for them then it will ask you if you wish to create one. Once this is done the form should open up as normal with the relevant information and allow you to edit. However whenever the MedicalForm opens it opens blank.

After trying various things I thought I'd got it working by changing the table in which the FK was present and allowing a many-to-many relationship. However although this only changed the problem; the record could no longer be deleted.

Anyway, a rather long winded explanation. And apologies if it doesnt all make sense. If you just take a look at the database file though it should become clear what I mean.

Any help would be o so appreciated!
Attached Files
File Type: zip ZacHarvey.zip (285.3 KB, 78 views)
Jun 7 '12 #1
5 2206
dsatino
393 256MB
Well your relationship were a mess. And there are certainly better ways to do this, but since you said stripped a lot out I tried to keep it intact as possible.

I changed the relationships and some of the code. Mainly, it now check for the existence of the medical on the click of the button rather than on the medical form open.
Attached Files
File Type: zip ZacHarvey .zip (433.7 KB, 82 views)
Jun 7 '12 #2
Thanks a lot dsatino. I'll take a look in the morning (GMT) I don't have access on my home PC.
Jun 7 '12 #3
Ok I took a look around at the changes you've made and after making sense of what you'd done I implimented it in my origional db. There were a couple of minor problems which I sorted:
  1. When attempting to delete the medical record it came up with Error 2046: The command 'DeleteRecord' isn't available now. So I got rid of the delete command and used a delete action query instead. This solved the problem.
  2. Also a warning box was coming up whenever I attempted to open the medical form telling me the table was about to be appended so I've disabled conformation of action queries in the options.

However I can't type into the medical form. I could in your's but after making the changes in mine it won't let me. I think this is because the form is based on the query and somethings stoping the query from appending the table. Can't figure it out though. I'll upload my full db this time if you are able to take a look into this it would be greatly appreciated.

Since you said things were a mess in my watered down version, I apologise in advance for the state of my full database. I've just done a lot of learning on the go whilst making this system and have things sourced from different places etc
Attached Files
File Type: zip BTG Co-ordinators Database.zip (785.9 KB, 94 views)
Jun 8 '12 #4
dsatino
393 256MB
I probably won't have time to get this. But off the top of my head, you need to mimic the relationships in what I gave you and then change the recordsource of your form to what I have in mine.

Basically, your query is either not updatable, or you have relationship rule that's not met.
Jun 8 '12 #5
Ahh I didn't check the record source of yours. Thanks, I'll take a look. Other than that though it should all be the same as I exported the module and query and checked my relationships were the same.
Jun 8 '12 #6

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

Similar topics

1
by: Jerry Sievers | last post by:
Fellow coders; I am curious about a difference in behavior between Mozilla and MSIE. The scenario; 1. a php form page is loaded on first hit with field values set to various things including...
1
by: Keith | last post by:
I am Using Dreamweaver MX to create my site and have come accross a problem no one in the DW groups seems to be able to help with. When I submit an insert to my SQL database, any form value which...
0
by: Bajal Mohamed via SQLMonster.com | last post by:
I am facing problem like; We generate reports thru Excel Pivot table. The data is coming from sales cube. Let?s assume that there are 2 products A and B. The user wants to filter for each...
2
by: JohnGates | last post by:
In VB.net, I have win form programs that do database update operations that take several minutes or longer. Several actions such as switching windows or clicking a control during these operations...
1
by: lucaslyana | last post by:
I have a datalist with multiple controls in the itemtemplate which can be selected. For example, a button can be clicked to vote on a topic, and upon selection it increments by 1. If I click on...
0
by: thepalace1 | last post by:
Appologies for advanced stupidity but i am new to asp.net, anyhow heres my problem, I am starting out trying to learn asp.net, i have created a simple site with a label, and a button,...
2
by: Robert McEuen | last post by:
Access 97/2003 Windows XP (Classic Start Menu) I just converted an mdb from A97 to A2K3 and found something that, after Google search, doesn't appear to have been addressed in cdma... I have...
3
by: kronecker | last post by:
I converted a C# program to VB.Net and it compiles fine. However, when I run it I get a blank form with nothing on it. There should be a few text boxes,pull down menus etc that I put on the form...
5
by: sarangrao | last post by:
I want to add new item by right clicking on folder,and add a web page.But add template is showing blank.(ie. nothing)
5
by: neelsfer | last post by:
I need to add a stopwatch (textbox type) - does not need to be fancy, to a form showing hhmmss, start/stop and reset buttons. Anybody with code for it?
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: 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
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?
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...

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.