Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 28th, 2004, 06:33 AM
Paula Paula is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 65 Paula User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 32 sec
Reputation Power: 5
Referencing fields on a subform

Please can anyone help? When I run the following piece of code it asks me to enter the fields referred to, as if it expects a parameter. Why does it not recognise the subform's fields?
The subform is not loaded at the time of running, but I have tried to load it and it doesn't recognise the Load command either.

Private Sub Command191_Click()

'Process runs when 'Report Print Preview' button pressed

Dim stdoc3, stlc4, stdatenew2, stld4 As String

stdoc3 = "OverdueRecommendations"

stdatenew2 = "Forms![Subform Recommendations]![Timescale] < date()"

stlc4 = "[Forms]![subform Recommendations]![Date Completed] is null" & " And " & "[Forms]![subform Recommendations]![Timescale] is not null"

stld4 = stlc4 & " And " & stdatenew2


If [report to print] = 14 And IsNull(Me![date1]) Then DoCmd.OpenReport stdoc3, acPreview, , stld4
End If


End Sub

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Referencing fields on a subform


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway