S
short
I'm creating a database that when the user selects the item in the combo box
and clicks the command button the information about that certain item is
displayed in their tables...
This is my code for where I'm have troubles:
ElseIf cbChangeView.value = "Application" Then
'///////////////////////////////////////////
'SetDefaults() = populates the rest of the table
'Table# = Name of the displayed table
Call SetDefaults(1, "Application", True)
Table1 = "Table.Application"
If IsNull(Me.cbName.value) Then
Me.cbName.value = ""
End If
'Sets the query statements for all of the tables used
Query1 = "SELECT * FROM Application WHERE Application.[Name]='" +
cbName.value + "';"
Query2 = "SELECT JVM.* FROM JVM, ApplicationJVM, Application WHERE " _
& "Application.[ID] = ApplicationJVM.[AppID] AND
ApplicationJVM.[JVMID]" _
& "= JVM.[ID] AND Application.[Name]='" + cbName.value + "';"
Query3 = "SELECT * FROM ApplicationJVM,Application WHERE Application.[ID]" _
& "= ApplicationJVM.[AppID] AND Application.[Name]='" +
cbName.value + "';"
Query4 = "SELECT Cluster.* FROM Cluster INNER JOIN (Application INNER JOIN
ApplicationCluster ON Application.ID = ApplicationCluster.AppID) ON
Cluster.ID = ApplicationCluster.CID WHERE " _
& " (((Application.ID)=[Application].[ID])) AND Application.[Name] = '" +
cbName.value + "';"
Query4 is what is not working, nothing is properly displayed. For query4
it's connected to the tables cluster, application, and applicationcluster.
Applicationcluster holds the primary keys for both the cluster and
application and connects them if that makes sense.
and clicks the command button the information about that certain item is
displayed in their tables...
This is my code for where I'm have troubles:
ElseIf cbChangeView.value = "Application" Then
'///////////////////////////////////////////
'SetDefaults() = populates the rest of the table
'Table# = Name of the displayed table
Call SetDefaults(1, "Application", True)
Table1 = "Table.Application"
If IsNull(Me.cbName.value) Then
Me.cbName.value = ""
End If
'Sets the query statements for all of the tables used
Query1 = "SELECT * FROM Application WHERE Application.[Name]='" +
cbName.value + "';"
Query2 = "SELECT JVM.* FROM JVM, ApplicationJVM, Application WHERE " _
& "Application.[ID] = ApplicationJVM.[AppID] AND
ApplicationJVM.[JVMID]" _
& "= JVM.[ID] AND Application.[Name]='" + cbName.value + "';"
Query3 = "SELECT * FROM ApplicationJVM,Application WHERE Application.[ID]" _
& "= ApplicationJVM.[AppID] AND Application.[Name]='" +
cbName.value + "';"
Query4 = "SELECT Cluster.* FROM Cluster INNER JOIN (Application INNER JOIN
ApplicationCluster ON Application.ID = ApplicationCluster.AppID) ON
Cluster.ID = ApplicationCluster.CID WHERE " _
& " (((Application.ID)=[Application].[ID])) AND Application.[Name] = '" +
cbName.value + "';"
Query4 is what is not working, nothing is properly displayed. For query4
it's connected to the tables cluster, application, and applicationcluster.
Applicationcluster holds the primary keys for both the cluster and
application and connects them if that makes sense.