<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[My Visual Database — Database Design Question]]></title>
		<link>https://myvisualdatabase.com/forum/viewtopic.php?id=7185</link>
		<atom:link href="https://myvisualdatabase.com/forum/extern.php?action=feed&amp;tid=7185&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Database Design Question.]]></description>
		<lastBuildDate>Sun, 13 Dec 2020 00:31:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Database Design Question]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39357#p39357</link>
			<description><![CDATA[<p>Perhaps the bigger benefit is that the id of the logged-on user (and any related information held in the _user table) is now available, if required, from anywhere else in your program with a simple reference back to &#039;form1.edit1.text&#039;<br />Derek</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Sun, 13 Dec 2020 00:31:55 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39357#p39357</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Design Question]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39356#p39356</link>
			<description><![CDATA[<p>Nice, I did get it to work with loading the grid by code, but I like your way much better. 4 less lines of code.</p>]]></description>
			<author><![CDATA[null@example.com (asawyer13)]]></author>
			<pubDate>Sat, 12 Dec 2020 19:34:11 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39356#p39356</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Design Question]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39355#p39355</link>
			<description><![CDATA[<p>Hi,<br />All you need to do is pass the userid of the person logged on and use it as a search criteria (see attached).<br />Try it with users Alan (password is alan) and Derek (password is derek) to see different doctors depending on who added them.<br />Derek.</p>]]></description>
			<author><![CDATA[null@example.com (derek)]]></author>
			<pubDate>Sat, 12 Dec 2020 19:32:15 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39355#p39355</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Design Question]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39353#p39353</link>
			<description><![CDATA[<p>OK, all issues resolved except for one.</p><p>When I open the form that has the doctor grid on it, I don&#039;t know how to filter for only doctors that have the userid of the person that&#039;s logged in.</p><p>I think that&#039;s my only issue left...</p><p>Is there a magical way to do that or will I have to look at loading the grid via script?? If so, I&#039;ll have to track down an example of that.</p><p>Thanks<br />Alan</p>]]></description>
			<author><![CDATA[null@example.com (asawyer13)]]></author>
			<pubDate>Sat, 12 Dec 2020 19:10:00 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39353#p39353</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Design Question]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39351#p39351</link>
			<description><![CDATA[<p>I ended up doing a dbupdate upon opening the form, and so now it loads values into my combobox, however if the record has a value it doesn&#039;t show.</p><p>Obviously I&#039;m doing something a bit wrong.</p><p>I can&#039;t attach my project here as it&#039;s getting much bigger and more proprietary.</p><p>Alan</p>]]></description>
			<author><![CDATA[null@example.com (asawyer13)]]></author>
			<pubDate>Sat, 12 Dec 2020 18:43:32 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39351#p39351</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Design Question]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39350#p39350</link>
			<description><![CDATA[<p>I added the relationship between Doctor and _user and I can get the proper value loaded in the table, however I don&#039;t know who to get the Grid when I want to list the doctors for that _user to work properly. If I say show all then it indeed shows all, but that includes other users records.<br />If I say Show child records (if any, I don&#039;t get anything</p><p>I could try adding a filter but don&#039;t know if there is anyway to add the application.user.id field in the Filter since the filter I believe is actually a sql statement filter.</p><p>and then I still have the combobox not loading values when the form starts up. It doesn&#039;t show what was loaded into the record also</p>]]></description>
			<author><![CDATA[null@example.com (asawyer13)]]></author>
			<pubDate>Sat, 12 Dec 2020 18:24:54 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39350#p39350</guid>
		</item>
		<item>
			<title><![CDATA[Re: Database Design Question]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39349#p39349</link>
			<description><![CDATA[<p>Right now I have the combobox in medications form set to Medication.id_Doctor and DrName for the foreignKey and FieldName.</p><p>Do I have to do something special to get the combobox to first load with values?? If I go to my Add Doctor form and then come back, the combobox is loaded with the proper values.</p><p>If that can be made to work, then my only issue is the best way to load the grid with the doctors for the family, hoping that maybe the _user relationsihp will fix that?</p><p>I feel like I&#039;m close.</p><p>Alan</p>]]></description>
			<author><![CDATA[null@example.com (asawyer13)]]></author>
			<pubDate>Sat, 12 Dec 2020 17:47:26 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39349#p39349</guid>
		</item>
		<item>
			<title><![CDATA[Database Design Question]]></title>
			<link>https://myvisualdatabase.com/forum/viewtopic.php?pid=39347#p39347</link>
			<description><![CDATA[<p>I am not sure how to define this in the Database Tables area.</p><p>I have a user table. It&#039;s called _user because I&#039;m using the roles feature.</p><p>I have a Person table so each user can add a number of persons. I have a relationship of _user in it.</p><p>I have a Medication table so each Person can have a list of their medications. I have a relationship with Person in it.</p><p>I now want to have a table of Doctor names. It probably would be one set of doctors for the whole family so at the _user level, however each medication will need something that identifies which doctor this is for.</p><p>I don&#039;t know how to design that. I want a combobox in the Medications form that would show the doctors, then be able to pick one.</p><p>Maybe I need to relationships??? One to Medications and one to _user????</p>]]></description>
			<author><![CDATA[null@example.com (asawyer13)]]></author>
			<pubDate>Sat, 12 Dec 2020 17:35:02 +0000</pubDate>
			<guid>https://myvisualdatabase.com/forum/viewtopic.php?pid=39347#p39347</guid>
		</item>
	</channel>
</rss>
