303factory
Registered User.
- Local time
- Today, 14:07
- Joined
- Oct 10, 2008
- Messages
- 136
Hi all
I'm very confused as to why my continuous subform displays no data even though I know it should be.
If I do a record count of my SQL string:
It returns a recordcount of 11.
Yet if I set my subform to have the recordsource as the same SQL string in the form_open function (which is triggering succesfully in debug)
Then my form has no entries other than the default empty entry. If I type new enties into the form they add successfully to the table and are visible on the form, but dissapear when you refresh the form (although they remain in the table)
Can anyone think of any reason this might be happening? The subform just has 5 text and check boxes that are all bound to the table.. im most perplexed
303
I'm very confused as to why my continuous subform displays no data even though I know it should be.
If I do a record count of my SQL string:
Code:
Dim rs As New ADODB.Recordset
strSQL = "SELECT * FROM tblContacts WHERE UniqueRef = " & gUniqueRef & _
" AND DataSet =1 " & _
" AND ContactType = " & Chr(39) & "MSISDN" & Chr(39)
rs.Open strSQL, gSQLdbase, adOpenKeyset, adLockOptimistic, adCmdText
MsgBox (rs.RecordCount)
rs.Close
Set rs = Nothing
Yet if I set my subform to have the recordsource as the same SQL string in the form_open function (which is triggering succesfully in debug)
Code:
Me.RecordSource = "SELECT * FROM tblContacts WHERE UniqueRef = " & gUniqueRef & _
" AND DataSet =1 " & _
" AND ContactType = " & Chr(39) & "MSISDN" & Chr(39)
Can anyone think of any reason this might be happening? The subform just has 5 text and check boxes that are all bound to the table.. im most perplexed
303