Академический Документы
Профессиональный Документы
Культура Документы
End Sub
End Sub
Dim l As Variant
Set Db = CurrentDb()
Set rsLive = Db.OpenRecordset(Me.TABELA)
Me.ORGAN.AddItem fld.Name
End If
Next
rsLive.MoveNext
Wend
rsLive.Close
Set rsLive = Nothing
Db.Close
Set Db = Nothing
Me.ORGAN.Requery
With Me.combo
.RowSourceType = "Value List" 'Set rowsource type
.RowSource = "" 'Clean combo contents
End With
'Loop through field names of table and add them to your combo:
For i = 1 To CurrentDb.TableDefs("Table1").Fields.Count
Next i
End Sub
With Me.POLJE
.RowSourceType = "Value List" 'Set rowsource type
.RowSource = "" 'Clean combo contents
End With
'Loop through field names of table and add them to your combo:
For i = 1 To CurrentDb.TableDefs(Me.NABAVKA).Fields.Count
End Sub