Hi Guys,
please find in attachment my example database.
I have table t_serverdetails with a lot of numbers values. I create a form MAinForm
1)
.
When you click on serverdeilas_IF_FK combobox (column serverdailas_ID_FK) you can choose values from above table.
And columns Cores and MemorySizeGMultiBytes will be updated also.
When you click on Cores you will see the same combobox but other columns are set to 0 width.
It is possible to solve this in another way?
Or build some list or another table to see what is going on? Or maybe build one more form with datasheet view and see what is going on with it.
Or maybe within combobox there is a chance to change it?
I mean to build more User Friendly view for this?
(for me this is strange to have this in few columns within table but can not imagine how to solve it in other way).
Second, more important problem.
2)
2) When i selecting column Cores i have an got focus event which is restricteing list of all possible values in combobox
(filtering it using code:
Code:
Dim rst As DAO.Recordset
Dim rsFiltered As DAO.Recordset
Dim ValueCount As String
ValueCount = [Form_t_customers subform].SystemNameCombo.Value
Set rst = CurrentDb.OpenRecordset("select * from t_serverdetails WHERE Topology_ID_FK = " & ValueCount)
'rst.Filter = "Topology_ID_FK =" & [Form_t_customers subform].SystemNameCombo.Value
Set rsFiltered = rst.OpenRecordset
Set [Form_t_juntion subform].ComboCores.Recordset = rsFiltered
Dim ctrl As Control
Set ctrl = Me.ActiveControl
So when SystemNameID is 1, when i click on combobox in Cores column there will be list from t_serverdetails where Topology_ID_FK = 1.
This is ok for inputing new customers and users.
But when i want to change existing one customer and his system - i have a problem.
I am on Cust1 with SystemName = 1
If i change SystemName field from t_customers subform to second value = 9 and clickec Cores column in t_juntion subfrom all values will disappear !
I do not know why this is happening.
And how to solve this.
When i am unhiding Serverdeilas_ID_FK column within combobox - i see in column Cores Serverdeilas_ID_FK value but i am not seeing Cores value anymore.
I think that these two problems are connected one with each other.
EDIT: please use database7_UPDATE file.
Please help,
Best,
Jacek