Hi John,
as you can see from the code, some of what Joe used is based on stuff I helped him with several years ago for a different project ... he never understood it though. Now he is building a similar database -- he needs to start at the beginning with tables and relationships -- forget there are forms and code. Thanks for helping him ;) I am studying so much (mobile technologies) that I can only answer quick questions
Warm Regards,
Crystal
*
(: have an awesome day :)
*
--- On Tue, 5/31/11, John Viescas <john@viescas.com> wrote:
> From: John Viescas
> Joe-
>
> The relationships that you have already looked fine to
> me. Any relationship should put the table with the
> Primary Key (key symbol) on the "left" and the table with
> the Foreign Key on the "right." You need to finish all
> the relationships from the L_ tables. You have one
> relationship between L_Results and Results that probably
> should have Referential Integrity defined.
>
> John Viescas, author
> Microsoft Office Access 2010 Inside Out
> Microsoft Office Access 2007 Inside Out
> Building Microsoft Access Applications
> Microsoft Office Access 2003 Inside Out
> SQL Queries for Mere Mortals
> http://www.viescas.com/
> (Paris, France)
>
>
>
> -----Original Message-----
> From: MS_Access_Professionals@yahoogroups.com
> [mailto:MS_Access_Professionals@yahoogroups.com]
> On Behalf Of Joe HErnandez
> Sent: Tuesday, May 31, 2011 10:08 PM
> To: MS_Access_Professionals@yahoogroups.com
> Subject: Re: [MS_AccessPros] Re: Help with relationships
>
> Yes I will need all the assistance and suggestions you can
> offer. Right about now I need to know how to relate them to
> each other. This is the area where I am lost at. Can you
> please tell me where to place each table (right or Left of
> the main form) and which ones get attached to which ones.
> Would you link them for me?
>
> Joe
>
>
> ________________________________
> From: John Viescas <john@viescas.com>
> To: MS_Access_Professionals@yahoogroups.com
> Sent: Tuesday, May 31, 2011 3:00 PM
> Subject: RE: [MS_AccessPros] Re: Help with relationships
>
>
>
> Joe-
>
> It landed in the main Files folder. You should have
> clicked 2_AssistanceNeeded, and then clicked the Add File
> link.
>
> It looks pretty good now. I see you've also started
> to build some forms. Let us know if you need
> additional help.
>
> John Viescas, author
> Microsoft Office Access 2010 Inside Out
> Microsoft Office Access 2007 Inside Out
> Building Microsoft Access Applications
> Microsoft Office Access 2003 Inside Out
> SQL Queries for Mere Mortals
> http://www.viescas.com/
> (Paris, France)
>
> P.S. You should delete your file to free up space in the
> amount alloted to the group.
>
> -----Original Message-----
> From: MS_Access_Professionals@yahoogroups.com
> [mailto:MS_Access_Professionals@yahoogroups.com]
> On Behalf Of Joe HErnandez
> Sent: Tuesday, May 31, 2011 8:26 PM
> To: MS_Access_Professionals@yahoogroups.com
> Subject: Re: [MS_AccessPros] Re: Help with relationships
>
> John;
> Where exactly do I find this folder?
> I've tried to locate it but can't?
>
> Joe
>
> P.S. I don't know where the db landed but I sent it in a
> while ago.
>
> ________________________________
> From: John Viescas <john@viescas.com>
> To: MS_Access_Professionals@yahoogroups.com
> Sent: Tuesday, May 31, 2011 11:58 AM
> Subject: RE: [MS_AccessPros] Re: Help with relationships
>
> Joe-
>
> You could compact / zip, and post it to the group
> Assistance Needed folder.
>
> John Viescas, author
> Microsoft Office Access 2010 Inside Out
> Microsoft Office Access 2007 Inside Out
> Building Microsoft Access Applications
> Microsoft Office Access 2003 Inside Out
> SQL Queries for Mere Mortals
> http://www.viescas.com/
> (Paris, France)
>
> -----Original Message-----
> From: MS_Access_Professionals@yahoogroups.com
> [mailto:MS_Access_Professionals@yahoogroups.com]
> On Behalf Of Joe HErnandez
> Sent: Tuesday, May 31, 2011 5:48 PM
> To: MS_Access_Professionals@yahoogroups.com
> Subject: Re: [MS_AccessPros] Re: Help with relationships
>
> John;
>
> I made the changes you suggested to the db.
> Do you want me to re-send it to you so that you can look it
> over?
>
> Joe
>
> ________________________________
> From: John Viescas <john@viescas.com>
> To: MS_Access_Professionals@yahoogroups.com
> Sent: Tuesday, May 31, 2011 12:58 AM
> Subject: RE: [MS_AccessPros] Re: Help with relationships
>
> Joe-
>
> Wow! Freddy & Soraya must be pretty special
> people to have fields named after them in the
> database. <s> What happens if Soraya finds
> a better job and moves on? You'll have to redesign
> your table - and that's not a good idea. I have no
> idea how you plan to enforce security, but a Users table
> should normally look like:
>
> tblUsers:
> UserID (PKey)
> UserName
> UserPswd
> UserAuth
>
> Then you put rows in for Soraya and Freddie and set their
> authorization level. If another person comes on board,
> you just add a row. If someone leaves, you delete the
> row. No changes to the design necessary.
>
> As for tracking patients and results, it might look
> something like:
>
> tblPatients:
> PatientID:
> PatientName
> .. other relevant fields such as address, phone number,
> referring doctor, etc.
>
> tblPatientAppointments:
> AppointmentID
> PatientID
> AppointmentDate
> ... etc.
>
> tblPatientAppointmentTests:
> TestID
> AppointmentID
> TestType
> TestResult
>
> If a particular test can have more than one result, then
> instead of putting TestResult in that table, you'll need:
>
> tblPatientApptTestResults:
> ResultID
> TestID
> Result
>
> The database will have one row for each patient, one row
> for each appointment, one row for each test performed during
> an appointment, and one row for each result for each
> test. To track "next" appointment, you might need a
> FollowUpDate in tblPatientAppointments, but you'll create a
> new row in tblPatientAppointments for the follow-up.
>
> John Viescas, author
> Microsoft Office Access 2010 Inside Out
> Microsoft Office Access 2007 Inside Out
> Building Microsoft Access Applications
> Microsoft Office Access 2003 Inside Out
> SQL Queries for Mere Mortals
> http://www.viescas.com/
> (Paris, France)
>
> -----Original Message-----
> From: MS_Access_Professionals@yahoogroups.com
> [mailto:MS_Access_Professionals@yahoogroups.com]
> On Behalf Of Joe HErnandez
> Sent: Tuesday, May 31, 2011 12:57 AM
> To: MS_Access_Professionals@yahoogroups.com
> Subject: Re: [MS_AccessPros] Re: Help with relationships
>
> John; thanks for getting back to me.
>
> The purpose of this db is to track:
> ·
> Patient/clients'
> visits (dates)
> · When and
> if they returned for results ,after each test (dates)
> · When is
> their follow- up appts .
> Please keep in mind that these patients (most of them)
> will
> return multiple times for re- testing and after each test
> they in turn will
> return for results. Hence, the
> repetition.
>
> The two people who will be doing the tests
> (testers) are Soraya and Freddie.
>
> ________________________________
> From: johnvmvp <john@viescas.com>
> To: MS_Access_Professionals@yahoogroups.com
> Sent: Monday, May 30, 2011 11:43 AM
> Subject: [MS_AccessPros] Re: Help with relationships
>
> Joe-
>
> I have your database, but the purpose of the database is
> not clear.
>
> You have a bad problem with both the Tests and Results
> tables. In the Tests tables, fields like TestDt1,
> TestDt2 and 2ndTestAppt_DT and 3rdTestAppt_DT are repeating
> groups. Ditto Rslt1, Rslt2, Rslt3, etc. in Results.
>
> The fields in L_AccessLevel make no sense. What are
> the Soraya and Freddie fields?
>
> John Viescas, author
> Microsoft Office Access 2010 Inside Out
> Microsoft Office Access 2007 Inside Out
> Building Microsoft Access Applications
> Microsoft Office Access 2003 Inside Out
> SQL Queries for Mere Mortals
> http://www.viescas.com/
> (Paris, France)
>
> --- In MS_Access_Professionals@yahoogroups.com,
> "JoeH" <jomahe0143@...> wrote:
> >
> > I am trying to build a database for my daughter. So
> far I have identified the tables and built some of the forms
> I feel I need.
> > I would like someone to help me connect the
> relationships and if at all possible provide any feedback
> deemed useful.
> >
> > If you need to see what I have done up to this point,
> please let me know how to attach the file.
> >
> > In advance I thank you
> > sincerely
> > Joe Hernandez
> >
> > P.S. I am using Access 2010 and my OS is Win 7.
> >
Rabu, 01 Juni 2011
RE: [MS_AccessPros] Re: Help with relationships
RE: [MS_AccessPros] Re: Obtaining Data from a remote server
Walter-
That page returns just a schema definition - the definition of tables into which
you might load data. The page has no data on it. Where did you get that link?
Using http://z3950.loc.gov/ gets me to the Library of Congress Online Catalog
where you can do a search in several different ways.
I can get to the entry for one of my books by entering:
http://catalog.loc.gov/cgi-bin/Pwebrecon.cgi?v1=1&ti=1,1&Search_Arg=0735623252&S
earch_Code=STNO&CNT=10&PID=FUVBXmdJMeiscnD5qfN-Jhc5Z1-A&SEQ=20110601102807&SID=2
(0735623252 is the ISBN)
I have done similar tricks with web pages before using Excel as an intermediary.
You can set up an Excel workbook to link to a web page and extract identifiable
"tabular" data into a worksheet. From Access, you can automate this, setting
the parameters, refreshing the worksheet and saving it, then import the Excel
data into Access. I did this recently for a client to grab data on exchange
rates (in tabular form) from XE.com. From Access, I set three cells so that
they contain the month, day, and year values, refresh the sheet (the Connection
points to the website page with the three parameters resolved from the cells in
Excel), save the result, import it, and update a local table with the requested
day's exchange rate. You can do this with any page that accepts ? parameters in
the URL.
John Viescas, author
Microsoft Office Access 2010 Inside Out
Microsoft Office Access 2007 Inside Out
Building Microsoft Access Applications
Microsoft Office Access 2003 Inside Out
SQL Queries for Mere Mortals
http://www.viescas.com/
(Paris, France)
-----Original Message-----
From: MS_Access_Professionals@yahoogroups.com
[mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of nkpberk
Sent: Wednesday, June 01, 2011 3:13 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] Re: Obtaining Data from a remote server
John;
I get the same stuff without the tab delimited formatting. If the data were
attached it would be the whole library? I need to know how to ask it a question
to get a single publication record.
Take a look (http://z3950.loc.gov:7090/voyager) maybe try to import it into a
blank DB to see what it does. I looked all over the web and all I can find
pertaining to Access & xml is importing and exporting one to the other but
nothing to query the xml page for specific data.
I'm in way over my head on this one.
Walter
--- In MS_Access_Professionals@yahoogroups.com, "John Viescas" <john@...> wrote:
>
> Walter-
>
> I get it. What you got from that file is only a schema - no data. If you
open
> the XML file in Notepad, do you see any data?
>
> John Viescas, author
> Microsoft Office Access 2010 Inside Out
> Microsoft Office Access 2007 Inside Out
> Building Microsoft Access Applications
> Microsoft Office Access 2003 Inside Out
> SQL Queries for Mere Mortals
> http://www.viescas.com/
> (Paris, France)
>
>
>
> -----Original Message-----
> From: MS_Access_Professionals@yahoogroups.com
> [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of nkpberk
> Sent: Wednesday, June 01, 2011 12:51 AM
> To: MS_Access_Professionals@yahoogroups.com
> Subject: [MS_AccessPros] Re: Obtaining Data from a remote server
>
> John;
> What I posted is exactly what I got, No multiple columns.
> Walter
>
> --- In MS_Access_Professionals@yahoogroups.com, "John Viescas" <john@> wrote:
> >
> > Walter-
> >
> > Ah, I see you said 12 *records* not 12 columns. Are there multiple sets of
> 12?
> > Can you post a sample of the data?
> >
> >
> > John Viescas, author
> > Microsoft Office Access 2010 Inside Out
> > Microsoft Office Access 2007 Inside Out
> > Building Microsoft Access Applications
> > Microsoft Office Access 2003 Inside Out
> > SQL Queries for Mere Mortals
> > http://www.viescas.com/
> > (Paris, France)
> >
> >
> >
> > -----Original Message-----
> > From: MS_Access_Professionals@yahoogroups.com
> > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of nkpberk
> > Sent: Tuesday, May 31, 2011 7:52 PM
> > To: MS_Access_Professionals@yahoogroups.com
> > Subject: [MS_AccessPros] Re: Obtaining Data from a remote server
> >
> > John : Yes it is, but how do I ask for data based on ISBN or LCCN so I get
> > actual info instead of the place holders?
> > Walter
> >
> >
> >
> > --- In MS_Access_Professionals@yahoogroups.com, "John Viescas" <john@>
wrote:
> > >
> > > Walter-
> > >
> > > Isn't the info you need in the Map table?
> > >
> > > John Viescas, author
> > > Microsoft Office Access 2010 Inside Out
> > > Microsoft Office Access 2007 Inside Out
> > > Building Microsoft Access Applications
> > > Microsoft Office Access 2003 Inside Out
> > > SQL Queries for Mere Mortals
> > > http://www.viescas.com/
> > > (Paris, France)
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: MS_Access_Professionals@yahoogroups.com
> > > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of nkpberk
> > > Sent: Tuesday, May 31, 2011 6:26 PM
> > > To: MS_Access_Professionals@yahoogroups.com
> > > Subject: [MS_AccessPros] Re: Obtaining Data from a remote server
> > >
> > > John;
> > > I downloaded the xml and came up with 9 tables
> > >
> > > Configinfo; "Default" = 0
> > >
> > > DBInfo; "title"= LoC Gateway, "Description" = null
> > >
> > > Explain; "schemaInfo" = null
> > >
> > > ExplainResponse; "Version" = 1.1
> > >
> > > Index; (11 records under "Title") title, subject, creator, editor,
> publisher,
> > > description, date, name, ISBN, ISSN, LCCN
> > >
> > > IndexInfo; "Set" = null
> > >
> > > Map;(12 records under "Name") title, subject, creator, author, editor,
> > > publisher, description, date, name, ISBN, ISSN, LCCN
> > >
> > > Record; "RecordSchema" =http://explain.z3950.org/dtd/2.0/ ,
"RecordPacking"
> =
> > > xml
> > >
> > > ServerInfo; "Host" = localhost ,"Port" = 7090, "database" = Voyager
> > >
> > > Quoted words are field names
> > >
> > > I am hoping to make this work by inputing The ISBN or LCCN (for older
> > > publications without the ISBN.
> > >
> > > Any Idea how to make this work?
> > >
> > > Walter
> > >
> > >
> > > --- In MS_Access_Professionals@yahoogroups.com, "John Viescas" <john@>
> wrote:
> > > >
> > > > Walter-
> > > >
> > > > In the latest versions of Access, you can Import an XML document into an
> > > Access
> > > > table. If you're able to download the XML document, try importing it to
> see
> > > if
> > > > Access likes it.
> > > >
> > > > John Viescas, author
> > > > Microsoft Office Access 2010 Inside Out
> > > > Microsoft Office Access 2007 Inside Out
> > > > Building Microsoft Access Applications
> > > > Microsoft Office Access 2003 Inside Out
> > > > SQL Queries for Mere Mortals
> > > > http://www.viescas.com/
> > > > (Paris, France)
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: MS_Access_Professionals@yahoogroups.com
> > > > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of nkpberk
> > > > Sent: Monday, May 30, 2011 11:44 PM
> > > > To: MS_Access_Professionals@yahoogroups.com
> > > > Subject: [MS_AccessPros] Obtaining Data from a remote server
> > > >
> > > > Hello Group;
> > > > I'm back with something a bit more complicated than usual. In my attempt
> to
> > > > build the(inventory) part of my application I want to be able to enter
the
> > > ISBN
> > > > or LCCN from the Library of Congress to pull pertinent data for the
> > > publications
> > > > inventory table. I have the server link (z3950.loc.gov:7090/voyager)
this
> > > gives
> > > > me an xml document but I have no idea how to query it or extract any
> result.
> > > > Any suggestions?
> > > > Walter Griffin
> > > >
Re: [MS_AccessPros] Re: Obtaining Data from a remote server
Hi Walter,
the XML file contains data
the XSD file contains the schema definition (mapping)
you need both files to import XML data that is not flat -- and the XSD file needs to be local. I put both files into a local directory to import xml.
I imported the data from your link into Access using 2010 -- several tables and records were created. What is missing, however, are the key fields to link the information -- this looks like just one record and its related records, so perhaps that is ok. The index table did not come in right -- the field names are records. If you can point me to the XSD file so I can grab it, I will see if it makes any difference.
Also, once the data goes into Access, you should rename fields -- several reserved words are being used
Problem names and reserved words in Access
http://allenbrowne.com/AppIssueBadWord.html
If you open an XML file with a browser, it will be indented and colored for you -- in case you haven't looked at it this way. I use NotePad++, a free tool that also indents and color-codes, and lets you edit.
~~~
here is an example of what an XSD file looks like:
<?xml version="1.0" ?>
<xs:schema id="MyEmployeeRecord" targetNamespace="http://MyEmployeeData/EmployeeRecord.xsd" xmlns:mstns="http://MyEmployeeData/EmployeeRecord.xsd" xmlns="http://MyEmployeeData/EmployeeRecord.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:element name="EmployeeRecord">
<xs:complexType mixed="true">
<xs:sequence>
<xs:element name="Department" type="xs:string" minOccurs="0" msdata:Ordinal="0" />
<xs:element name="Contact" minOccurs="0" maxOccurs="unbounded">
<xs:complexType mixed="true">
<xs:sequence>
<xs:element name="EmployeeID" type="xs:string" minOccurs="0" />
<xs:element name="EmpName" type="xs:string" minOccurs="0" />
<xs:element name="Region" type="xs:string" minOccurs="0" />
<xs:element name="Rate" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="MyEmployeeRecord" msdata:IsDataSet="true" msdata:EnforceConstraints="False">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element ref="EmployeeRecord" />
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
~~~~~~~~~~~~~~~
as you can see, this is like the design view of a table -- it has the field definitions
Warm Regards,
Crystal
*
(: have an awesome day :)
*
--- On Wed, 6/1/11, nkpberk wrote:
> John;
> I get the same stuff without the tab delimited formatting.
> If the data were attached it would be the whole library? I
> need to know how to ask it a question to get a single
> publication record.
> Take a look (http://z3950.loc.gov:7090/voyager) maybe
> try to import it into a blank DB to see what it does. I
> looked all over the web and all I can find pertaining to
> Access & xml is importing and exporting one to the other
> but nothing to query the xml page for specific data.
> I'm in way over my head on this one.
> Walter
>
> --- "John Viescas" <john@...> wrote:
> >
> > Walter-
> >
> > I get it. What you got from that file is only a
> schema - no data. If you open
> > the XML file in Notepad, do you see any data?
> >
> > John Viescas, author
> > Microsoft Office Access 2010 Inside Out
> > Microsoft Office Access 2007 Inside Out
> > Building Microsoft Access Applications
> > Microsoft Office Access 2003 Inside Out
> > SQL Queries for Mere Mortals
> > http://www.viescas.com/
> > (Paris, France)
> >
> >
> >
> > -----Original Message-----
> > From: nkpberk
> >
> > John;
> > What I posted is exactly what I got, No multiple
> columns.
> > Walter
> >
> > --- In MS_Access_Professionals@yahoogroups.com,
> "John Viescas" <john@> wrote:
> > >
> > > Walter-
> > >
> > > Ah, I see you said 12 *records* not 12
> columns. Are there multiple sets of
> > 12?
> > > Can you post a sample of the data?
> > >
> > >
> > > John Viescas, author
> > > Microsoft Office Access 2010 Inside Out
> > > Microsoft Office Access 2007 Inside Out
> > > Building Microsoft Access Applications
> > > Microsoft Office Access 2003 Inside Out
> > > SQL Queries for Mere Mortals
> > > http://www.viescas.com/
> > > (Paris, France)
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: MS_Access_Professionals@yahoogroups.com
> > > [mailto:MS_Access_Professionals@yahoogroups.com]
> On Behalf Of nkpberk
> > > Sent: Tuesday, May 31, 2011 7:52 PM
> > > To: MS_Access_Professionals@yahoogroups.com
> > > Subject: [MS_AccessPros] Re: Obtaining Data from
> a remote server
> > >
> > > John : Yes it is, but how do I ask for data based
> on ISBN or LCCN so I get
> > > actual info instead of the place holders?
> > > Walter
> > >
> > >
> > >
> > > --- In MS_Access_Professionals@yahoogroups.com,
> "John Viescas" <john@> wrote:
> > > >
> > > > Walter-
> > > >
> > > > Isn't the info you need in the Map table?
> > > >
> > > > John Viescas, author
> > > > Microsoft Office Access 2010 Inside Out
> > > > Microsoft Office Access 2007 Inside Out
> > > > Building Microsoft Access Applications
> > > > Microsoft Office Access 2003 Inside Out
> > > > SQL Queries for Mere Mortals
> > > > http://www.viescas.com/
> > > > (Paris, France)
> > > >
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: MS_Access_Professionals@yahoogroups.com
> > > > [mailto:MS_Access_Professionals@yahoogroups.com]
> On Behalf Of nkpberk
> > > > Sent: Tuesday, May 31, 2011 6:26 PM
> > > > To: MS_Access_Professionals@yahoogroups.com
> > > > Subject: [MS_AccessPros] Re: Obtaining Data
> from a remote server
> > > >
> > > > John;
> > > > I downloaded the xml and came up with 9
> tables
> > > >
> > > > Configinfo; "Default" = 0
> > > >
> > > > DBInfo; "title"= LoC Gateway, "Description"
> = null
> > > >
> > > > Explain; "schemaInfo" = null
> > > >
> > > > ExplainResponse; "Version" = 1.1
> > > >
> > > > Index; (11 records under "Title") title,
> subject, creator, editor,
> > publisher,
> > > > description, date, name, ISBN, ISSN, LCCN
> > > >
> > > > IndexInfo; "Set" = null
> > > >
> > > > Map;(12 records under "Name") title,
> subject, creator, author, editor,
> > > > publisher, description, date, name, ISBN,
> ISSN, LCCN
> > > >
> > > > Record; "RecordSchema" =http://explain.z3950.org/dtd/2.0/ , "RecordPacking"
> > =
> > > > xml
> > > >
> > > > ServerInfo; "Host" = localhost ,"Port" =
> 7090, "database" = Voyager
> > > >
> > > > Quoted words are field names
> > > >
> > > > I am hoping to make this work by inputing
> The ISBN or LCCN (for older
> > > > publications without the ISBN.
> > > >
> > > > Any Idea how to make this work?
> > > >
> > > > Walter
> > > >
> > > >
> > > > --- In MS_Access_Professionals@yahoogroups.com,
> "John Viescas" <john@>
> > wrote:
> > > > >
> > > > > Walter-
> > > > >
> > > > > In the latest versions of Access, you
> can Import an XML document into an
> > > > Access
> > > > > table. If you're able to download
> the XML document, try importing it to
> > see
> > > > if
> > > > > Access likes it.
> > > > >
> > > > > John Viescas, author
> > > > > Microsoft Office Access 2010 Inside
> Out
> > > > > Microsoft Office Access 2007 Inside
> Out
> > > > > Building Microsoft Access Applications
> > > > > Microsoft Office Access 2003 Inside
> Out
> > > > > SQL Queries for Mere Mortals
> > > > > http://www.viescas.com/
> > > > > (Paris, France)
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: MS_Access_Professionals@yahoogroups.com
> > > > > [mailto:MS_Access_Professionals@yahoogroups.com]
> On Behalf Of nkpberk
> > > > > Sent: Monday, May 30, 2011 11:44 PM
> > > > > To: MS_Access_Professionals@yahoogroups.com
> > > > > Subject: [MS_AccessPros] Obtaining Data
> from a remote server
> > > > >
> > > > > Hello Group;
> > > > > I'm back with something a bit more
> complicated than usual. In my attempt
> > to
> > > > > build the(inventory) part of my
> application I want to be able to enter the
> > > > ISBN
> > > > > or LCCN from the Library of Congress to
> pull pertinent data for the
> > > > publications
> > > > > inventory table. I have the server link
> (z3950.loc.gov:7090/voyager) this
> > > > gives
> > > > > me an xml document but I have no idea
> how to query it or extract any
> > result.
> > > > > Any suggestions?
> > > > > Walter Griffin
> > > > >
RE: [MS_AccessPros] Trying to automate multiple patients "chains" of hospital visits
Eric:
You can't attach a file to the email. You have to upload it to the Group's Yahoo page in the "Needs Assistance" folder.
I have to say though: I am very leery that an Access database is an acceptable database for medical and patient records. I would think this is a serious violation of HIPPA rules due to the very lax security surrounding an Access database.
I know an Access database would never be allowed for Credit Cards (or processing those like Ebay, Amazon, or any other application that accepts credit cards as payment) due to PCI regulations. When you get hacked the first month in business due to this, your company wouldn't be around much longer.
I would have to think HIPPA wouldn't allow such a database to store such confidential information.
Have said that, I do not know for certain, but it might be worth the effort to find out.
Thanks
Andy
From: MS_Access_Professionals@yahoogroups.com [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of Barry White
Sent: Wednesday, June 01, 2011 10:03 AM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] Trying to automate multiple patients "chains" of hospital visits
Okay I give up.
How do you attach a document to this group, so it comes out in the correct readable format?
It did not take my word doc attachment and when I simply do a paste as in below it comes out all nasty.
Eric Lutz
--- On Wed, 6/1/11, Barry White <imtigerwords@yahoo.com <mailto:imtigerwords%40yahoo.com> > wrote:
From: Barry White <imtigerwords@yahoo.com <mailto:imtigerwords%40yahoo.com> >
Subject: Re: [MS_AccessPros] Trying to automate multiple patients "chains" of hospital visits
To: MS_Access_Professionals@yahoogroups.com <mailto:MS_Access_Professionals%40yahoogroups.com>
Date: Wednesday, June 1, 2011, 9:59 AM
Hello all,
I am viewing multiple patient's medical data.
The very first visit by that patient over a given timeframe is designated with "999999"
For each subsequent visit by that same patient I wish to calculate a running total of days since the discharge date of the initial visit. The date of discharge is the second column of dates in the set below. The first column of dates are the admit dates.
A new patient's initial visit begins, when you run into another set of "999999"
(I am not particular as to what value I give the initial visit, it could be 999999 or any value as long as its consistent).
So in row 2, with the admit date being 2/23/2010 and the discharge of 2/27/2010, the days since the initial visit is 5, as seen in column 3, and it is calculated as
2/23/2010 minus 2/18/2010
The third visit by this same patient is an admit date of 3/6/2010 and discharge of 3/10/2010
So you could either take 3/6/2010 minus 2/18/2010 for the result of 16, OR you could do it the way I have done it below, which is to take 3/6/2010 minus 2/23/2010 = 11 (subtracting admit dates), and add the 11 from the 3rd row of the fourth column to the 5 from the second row in the third column.
That 5 + 11 = 16, the 16 will need to be added to the 56, yielding 72 as a running total. The 72 will need to be added to the 177 to equal 249, the 249 in turn added to the 45 to ultimately give 294 days as the total days from the first visits day of discharge.
The problem comes in because each patient can have a unique and totally different number of visits, within a given time frame, so you never know when the "chain" will end.
Sometimes it ends with two visits only, sometimes 10, or 3, or 5, or 7, etc.
02/16/2010
02/18/2010
999999
999999
02/23/2010
02/27/2010
5
7
03/06/2010
03/10/2010
7
11
05/01/2010
05/03/2010
52
56
10/25/2010
10/27/2010
175
177
12/09/2010
12/16/2010
43
45
12/28/2009
01/01/2010
999999
999999
01/28/2010
02/09/2010
27
31
06/05/2010
06/10/2010
116
128
08/16/2010
08/20/2010
67
72
10/04/2010
10/07/2010
45
49
02/21/2010
02/23/2010
999999
999999
01/21/2011
01/29/2011
332
334
06/30/2010
07/02/2010
999999
999999
01/01/2011
01/04/2011
183
185
--- On Wed, 6/1/11, Barry White <imtigerwords@yahoo.com <mailto:imtigerwords%40yahoo.com> > wrote:
From: Barry White <imtigerwords@yahoo.com <mailto:imtigerwords%40yahoo.com> >
Subject: [MS_AccessPros] Trying to automate multiple patients "chains" of hospital visits
To: MS_Access_Professionals@yahoogroups.com <mailto:MS_Access_Professionals%40yahoogroups.com>
Date: Wednesday, June 1, 2011, 9:56 AM
Hello all,
I would appreciate a point in the right direction, or a little assist with the attached.
Thank you in advance for all your help.
Eric Lutz
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
Re: [MS_AccessPros] Trying to automate multiple patients "chains" of hospital visits
Okay I give up.
How do you attach a document to this group, so it comes out in the correct readable format?
It did not take my word doc attachment and when I simply do a paste as in below it comes out all nasty.
Eric Lutz
--- On Wed, 6/1/11, Barry White <imtigerwords@yahoo.com> wrote:
From: Barry White <imtigerwords@yahoo.com>
Subject: Re: [MS_AccessPros] Trying to automate multiple patients "chains" of hospital visits
To: MS_Access_Professionals@yahoogroups.com
Date: Wednesday, June 1, 2011, 9:59 AM
Hello all,
I am viewing multiple patient's medical data.
The very first visit by that patient over a given timeframe is designated with "999999"
For each subsequent visit by that same patient I wish to calculate a running total of days since the discharge date of the initial visit. The date of discharge is the second column of dates in the set below. The first column of dates are the admit dates.
A new patient's initial visit begins, when you run into another set of "999999"
(I am not particular as to what value I give the initial visit, it could be 999999 or any value as long as its consistent).
So in row 2, with the admit date being 2/23/2010 and the discharge of 2/27/2010, the days since the initial visit is 5, as seen in column 3, and it is calculated as
2/23/2010 minus 2/18/2010
The third visit by this same patient is an admit date of 3/6/2010 and discharge of 3/10/2010
So you could either take 3/6/2010 minus 2/18/2010 for the result of 16, OR you could do it the way I have done it below, which is to take 3/6/2010 minus 2/23/2010 = 11 (subtracting admit dates), and add the 11 from the 3rd row of the fourth column to the 5 from the second row in the third column.
That 5 + 11 = 16, the 16 will need to be added to the 56, yielding 72 as a running total. The 72 will need to be added to the 177 to equal 249, the 249 in turn added to the 45 to ultimately give 294 days as the total days from the first visits day of discharge.
The problem comes in because each patient can have a unique and totally different number of visits, within a given time frame, so you never know when the "chain" will end.
Sometimes it ends with two visits only, sometimes 10, or 3, or 5, or 7, etc.
02/16/2010
02/18/2010
999999
999999
02/23/2010
02/27/2010
5
7
03/06/2010
03/10/2010
7
11
05/01/2010
05/03/2010
52
56
10/25/2010
10/27/2010
175
177
12/09/2010
12/16/2010
43
45
12/28/2009
01/01/2010
999999
999999
01/28/2010
02/09/2010
27
31
06/05/2010
06/10/2010
116
128
08/16/2010
08/20/2010
67
72
10/04/2010
10/07/2010
45
49
02/21/2010
02/23/2010
999999
999999
01/21/2011
01/29/2011
332
334
06/30/2010
07/02/2010
999999
999999
01/01/2011
01/04/2011
183
185
--- On Wed, 6/1/11, Barry White <imtigerwords@yahoo.com> wrote:
From: Barry White <imtigerwords@yahoo.com>
Subject: [MS_AccessPros] Trying to automate multiple patients "chains" of hospital visits
To: MS_Access_Professionals@yahoogroups.com
Date: Wednesday, June 1, 2011, 9:56 AM
Hello all,
I would appreciate a point in the right direction, or a little assist with the attached.
Thank you in advance for all your help.
Eric Lutz
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
Re: [MS_AccessPros] Trying to automate multiple patients "chains" of hospital visits
Hello all,
I am viewing multiple patient's medical data.
The very first visit by that patient over a given timeframe is designated with "999999"
For each subsequent visit by that same patient I wish to calculate a running total of days since the discharge date of the initial visit. The date of discharge is the second column of dates in the set below. The first column of dates are the admit dates.
A new patient's initial visit begins, when you run into another set of "999999"
(I am not particular as to what value I give the initial visit, it could be 999999 or any value as long as its consistent).
So in row 2, with the admit date being 2/23/2010 and the discharge of 2/27/2010, the days since the initial visit is 5, as seen in column 3, and it is calculated as
2/23/2010 minus 2/18/2010
The third visit by this same patient is an admit date of 3/6/2010 and discharge of 3/10/2010
So you could either take 3/6/2010 minus 2/18/2010 for the result of 16, OR you could do it the way I have done it below, which is to take 3/6/2010 minus 2/23/2010 = 11 (subtracting admit dates), and add the 11 from the 3rd row of the fourth column to the 5 from the second row in the third column.
That 5 + 11 = 16, the 16 will need to be added to the 56, yielding 72 as a running total. The 72 will need to be added to the 177 to equal 249, the 249 in turn added to the 45 to ultimately give 294 days as the total days from the first visits day of discharge.
The problem comes in because each patient can have a unique and totally different number of visits, within a given time frame, so you never know when the "chain" will end.
Sometimes it ends with two visits only, sometimes 10, or 3, or 5, or 7, etc.
02/16/2010
02/18/2010
999999
999999
02/23/2010
02/27/2010
5
7
03/06/2010
03/10/2010
7
11
05/01/2010
05/03/2010
52
56
10/25/2010
10/27/2010
175
177
12/09/2010
12/16/2010
43
45
12/28/2009
01/01/2010
999999
999999
01/28/2010
02/09/2010
27
31
06/05/2010
06/10/2010
116
128
08/16/2010
08/20/2010
67
72
10/04/2010
10/07/2010
45
49
02/21/2010
02/23/2010
999999
999999
01/21/2011
01/29/2011
332
334
06/30/2010
07/02/2010
999999
999999
01/01/2011
01/04/2011
183
185
--- On Wed, 6/1/11, Barry White <imtigerwords@yahoo.com> wrote:
From: Barry White <imtigerwords@yahoo.com>
Subject: [MS_AccessPros] Trying to automate multiple patients "chains" of hospital visits
To: MS_Access_Professionals@yahoogroups.com
Date: Wednesday, June 1, 2011, 9:56 AM
Hello all,
I would appreciate a point in the right direction, or a little assist with the attached.
Thank you in advance for all your help.
Eric Lutz
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[MS_AccessPros] Trying to automate multiple patients "chains" of hospital visits
Hello all,
I would appreciate a point in the right direction, or a little assist with the attached.
Thank you in advance for all your help.
Eric Lutz
[Non-text portions of this message have been removed]