clubdjlouie
IS-IT--Management
I have been pounding my head against the wall trying to figure out why this doesnt work! It's so simple yet I do not know how to do this? Any help would appreciated...
Microsoft Access Database
I have three tables...
Table A : "Servers"
Fields : Server, Domain
Table B : "XREF"
Fields : Server, ID, Domain
Table C : "Paper Reconciliation"
Fields : ID, Date, Account, etc
While in a form that shows the data of Table A, I have a button that says "show cross references" It calls a macro named "showxref" and does an OpenQuery on 2 queries (read only). The button works fine to start the macro to start the queries but it returns inaccurate information!
The goal is to Grab the "server: field of the current record that is open (only the one record). Then, Compare this with the "Server" field in the "XREF" table. If it matches, display the ID and a bunch of other info from the "Paper Reconciliation" table. It should continue to search through the database to find all matches. I've had some very limited success with this command "[Forms]![Server Information]![Server]"
Consequently, I need to run this twice, this time search by domain instead of server
Grab the current Domain name of the form that is currently open (only the one record). Then, Compare this with the "Domain" field in the "XREF" table. If it matches, display the ID and a bunch of other info from the "Paper Reconciliation" table. It should continue to search through the database to find all matches. I've had some very limited success with this command
"[Forms]![Server Information]![Domain]"
How do I set this up? I've messed with the relationship arrows and it still does not pull everything up.
an example of how I would expect it to work with dummy data...
Table A : "Servers"
Fields : Server, Domain
server1, domain1
server2, domain1
server3, domain2
Table B : "XREF"
Fields : Server, ID, Domain
server1, 29, domain1
server2, 13, domain1
server3, 6, domain2
Table C : "Paper Reconciliation"
Fields : ID, Date, Account, etc
6, 1/2/02, Adminstrator, blue
13, 2/2/00, Guest, Red
29, 5,13,01, Joe, Green
I open the form and select the see the following from table A...
"Server1, domain1"
I Hit the magic button <poof>
It should check the XREF table and match the server name "Server1"
so it will return ID 29
29 links to table C so it would display "29, 5,13,01, Joe, Green"
Now the second query kicks in
It should check the XFREF table and match "domain1"
This time it will return ID 29 and 13
29 and 13 link to table C so it would display
"server1, 29, domain1"
"server2, 13, domain1"
Microsoft Access Database
I have three tables...
Table A : "Servers"
Fields : Server, Domain
Table B : "XREF"
Fields : Server, ID, Domain
Table C : "Paper Reconciliation"
Fields : ID, Date, Account, etc
While in a form that shows the data of Table A, I have a button that says "show cross references" It calls a macro named "showxref" and does an OpenQuery on 2 queries (read only). The button works fine to start the macro to start the queries but it returns inaccurate information!
The goal is to Grab the "server: field of the current record that is open (only the one record). Then, Compare this with the "Server" field in the "XREF" table. If it matches, display the ID and a bunch of other info from the "Paper Reconciliation" table. It should continue to search through the database to find all matches. I've had some very limited success with this command "[Forms]![Server Information]![Server]"
Consequently, I need to run this twice, this time search by domain instead of server
Grab the current Domain name of the form that is currently open (only the one record). Then, Compare this with the "Domain" field in the "XREF" table. If it matches, display the ID and a bunch of other info from the "Paper Reconciliation" table. It should continue to search through the database to find all matches. I've had some very limited success with this command
"[Forms]![Server Information]![Domain]"
How do I set this up? I've messed with the relationship arrows and it still does not pull everything up.
an example of how I would expect it to work with dummy data...
Table A : "Servers"
Fields : Server, Domain
server1, domain1
server2, domain1
server3, domain2
Table B : "XREF"
Fields : Server, ID, Domain
server1, 29, domain1
server2, 13, domain1
server3, 6, domain2
Table C : "Paper Reconciliation"
Fields : ID, Date, Account, etc
6, 1/2/02, Adminstrator, blue
13, 2/2/00, Guest, Red
29, 5,13,01, Joe, Green
I open the form and select the see the following from table A...
"Server1, domain1"
I Hit the magic button <poof>
It should check the XREF table and match the server name "Server1"
so it will return ID 29
29 links to table C so it would display "29, 5,13,01, Joe, Green"
Now the second query kicks in
It should check the XFREF table and match "domain1"
This time it will return ID 29 and 13
29 and 13 link to table C so it would display
"server1, 29, domain1"
"server2, 13, domain1"