Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Combo2_AfterUpdate()
Dim str As String
str = "Mon;Tue;Wed"
Me.Combo2.RowSourceType = "Value List"
Me.Combo2.RowSource = str
End Sub
Function Concatenate(pstrSQL As String)
Dim pstrDelim As String
pstrDelim = ", "
Dim db As DAO.Database
Dim rs As DAO.Recordset
Set db = CurrentDb
pstrSQL = "SELECT tblData.TopicHead" & Forms!Configure.Combo1.Column(1) & " FROM tblData WHERE ID = " & [ID]
Set rs = db.OpenRecordset(pstrSQL)
Dim strConcat As String 'build return string
With rs
If Not .EOF Then
.MoveFirst
Do While Not .EOF
strConcat = strConcat & _
.Fields(0) & pstrDelim
.MoveNext
Loop
End If
.Close
End With
Set rs = Nothing
Set db = Nothing
If Len(strConcat) > 0 Then
strConcat = Left(strConcat, _
Len(strConcat) - Len(pstrDelim))
End If
Concatenate = strConcat
End Function
pstrSQL = "SELECT tblData.ID,Concatenate("SELECT tblData.TopicHead" & Me.Combo1.Column(1) & "FROM tblData WHERE ID =" & [ID]"
pstrSQL = Concatenate("SELECT tblData.TopicHead" & Forms!Configure.Combo1.Column(1) & "FROM tblData WHERE ID =" & [tblData.ID])
pstrSQL = "SELECT tblData.TopicHead" & Forms!Configure.Combo1.Column(1) & " FROM tblData WHERE ID = " & [ID]
pstrSQL = "SELECT tblData.TopicHead[COLOR=Red Yellow] [/Color Red Yellow] " & Forms!Configure.Combo1.Column(1) & " FROM tblData WHERE ID = [Red]""[/Red]" & [ID][Red] & """ "[/Red]
pstrSQL = Concatenate("SELECT tblData.TopicHead" & Forms!Configure.Combo1.Column(1) & "FROM tblData WHERE ID =" & [tblData.ID])
pstrSQL = SELECT tblData.TopicHead" & Forms!Configure.Combo1.Column(1) & "FROM tblData WHERE ID =" & [tblData.ID]