L lee_morgan Registered User. Local time Today, 02:46 Joined Mar 10, 2005 Messages 21 Mar 25, 2005 #1 Any ideas as to why I can't see the fields from my query in my form biut when I use a table I can see them all??
Any ideas as to why I can't see the fields from my query in my form biut when I use a table I can see them all??
ghudson Registered User. Local time Today, 05:46 Joined Jun 8, 2002 Messages 6,193 Mar 25, 2005 #2 Your SQL [record source] is not returning any records. When that happens the forms sometimes load blank.
Your SQL [record source] is not returning any records. When that happens the forms sometimes load blank.
L lee_morgan Registered User. Local time Today, 02:46 Joined Mar 10, 2005 Messages 21 Mar 26, 2005 #3 ghudson said: Your SQL [record source] is not returning any records. When that happens the forms sometimes load blank. Click to expand... Is there anything that I can do to stop this??
ghudson said: Your SQL [record source] is not returning any records. When that happens the forms sometimes load blank. Click to expand... Is there anything that I can do to stop this??
ghudson Registered User. Local time Today, 05:46 Joined Jun 8, 2002 Messages 6,193 Mar 27, 2005 #4 Put this in your forms OnOpen event... Code: Private Sub Form_Open(Cancel As Integer) If Me.RecordsetClone.RecordCount = 0 Then MsgBox "There are zero records in the data source!", vbInformation, "No Records Found" DoCmd.Close acForm, Me.Name End If End Sub
Put this in your forms OnOpen event... Code: Private Sub Form_Open(Cancel As Integer) If Me.RecordsetClone.RecordCount = 0 Then MsgBox "There are zero records in the data source!", vbInformation, "No Records Found" DoCmd.Close acForm, Me.Name End If End Sub