Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
Loading... 

Thread: Open report


Started 4 months, 1 week ago by Jayde
I have a form that contains a button to open a report of the current data that was entered. The code that opens the report: DoCmd****nCommand acCmdSaveRecord DoCmd.OpenReport "rptPatients", acViewPreview, , PatientID = " & Me![PatientID]" this code opens the report but when it opens it is blank. Can someone help me get this report to open the current record that was entered? ...
Site: dBforums - Database Support Community  dBforums - Database Support Community - site profile
Forum: Microsoft Access  Microsoft Access - forum profile
Total authors: 6 authors
Total thread posts: 12 posts
Thread activity: no new posts during last week
Domain info for: dbforums.com

Other posts in this thread:

Jayde Registered User replied 4 months, 1 week ago
I have a form that contains a button to open a report of the current data that was entered. The code that opens the report: DoCmd****nCommand acCmdSaveRecord DoCmd.OpenReport "rptPatients", acViewPreview, , PatientID = " & Me![PatientID]" this code opens the report but when it opens it is blank. Can someone help me get this report to open the current record that was entered? ...

NTC Registered User replied 4 months, 1 week ago
don't understand this at all: DoCmd****nCommand acCmdSaveRecord is your problem that it is a brand new record? - and thus the table isn't getting the record before the open report command?? if so add a me.dirty=false in the command event before the report open...

NTC replied 4 months, 1 week ago
don't understand this at all: DoCmd****nCommand acCmdSaveRecord is your problem that it is a brand new record? - and thus the table isn't getting the record before the open report command?? if so add a me.dirty=false in the command event before the report open...

Jayde Registered User replied 4 months, 1 week ago
DoCmd****nCommand acCmdSaveRecord im sorry about the stars but this line saves the record to the table(i think...) im a novice so excuse. Tried the Me.Dirty it doesn't work

Jayde replied 4 months, 1 week ago
DoCmd****nCommand acCmdSaveRecord im sorry about the stars but this line saves the record to the table(i think...) im a novice so excuse. Tried the Me.Dirty it doesn't work

Jayde Registered User replied 4 months, 1 week ago
its DoCmd****nCommand acSaveRecord i don't y the stars keep goin there

Jayde replied 4 months, 1 week ago
its DoCmd****nCommand acSaveRecord i don't y the stars keep goin there

NTC Registered User replied 4 months, 1 week ago
Dim strWhere as Integer strWhere = "[ID] = " & Me.[PatientID] DoCmd.OpenReport "rptPatients", acViewPreview, , strWhere If your primary key is a Text type field (not a Number type field), you need extra quotes: strWhere = "[ID] = """ & Me.[PatientID] & """" and of course Dim as a String

NTC replied 4 months, 1 week ago
Dim strWhere as Integer strWhere = "[ID] = " & Me.[PatientID] DoCmd.OpenReport "rptPatients", acViewPreview, , strWhere If your primary key is a Text type field (not a Number type field), you need extra quotes: strWhere = "[ID] = """ & Me.[PatientID] & """" and of course Dim as a String

healdem jaded developer replied 4 months, 1 week ago
Quote: Originally Posted by Jayde its DoCmd****nCommand acSaveRecord i don't y the stars keep goin there the asterisks appear becuase of a spam filtert installed when we were plagued with spam promotoing roumanian porn sites so the offendeing . r u was edited out so it shoud read dodmd. r u ncommand

 

Top contributing authors

Name
Posts
Jayde Registered User
3
user's latest post:
Open report
Published (2009-11-13 10:56:00)
its DoCmd****nCommand acSaveRecord i don't y the stars keep goin there
Jayde
3
user's latest post:
Open report
Published (2009-11-13 10:55:00)
DoCmd****nCommand acCmdSaveRecord im sorry about the stars but this line saves the record to the table(i think...) im a novice so excuse. Tried the Me.Dirty it doesn't work
NTC Registered User
2
user's latest post:
Open report
Published (2009-11-13 12:32:00)
Dim strWhere as Integer strWhere = "[ID] = " & Me.[PatientID] DoCmd.OpenReport "rptPatients", acViewPreview, , strWhere If your primary key is a Text type field (not a Number type field), you need extra quotes: strWhere = "[ID] = """ & Me.[PatientID] & """" and of course Dim as a String
NTC
2
user's latest post:
Open report
Published (2009-11-13 12:32:00)
Dim strWhere as Integer strWhere = "[ID] = " & Me.[PatientID] DoCmd.OpenReport "rptPatients", acViewPreview, , strWhere If your primary key is a Text type field (not a Number type field), you need extra quotes: strWhere = "[ID] = """ & Me.[PatientID] & """" and of course Dim as a String
healdem jaded developer
1
user's latest post:
Open report
Published (2009-11-13 12:43:00)
Quote: Originally Posted by Jayde its DoCmd****nCommand acSaveRecord i don't y the stars keep goin there the asterisks appear becuase of a spam filtert installed when we were plagued with spam promotoing roumanian porn sites so the offendeing . r u was edited out so it shoud read dodmd. r u ncommand
healdem
1
user's latest post:
Open report
Published (2009-11-13 12:43:00)
Quote: Originally Posted by Jayde its DoCmd****nCommand acSaveRecord i don't y the stars keep goin there the asterisks appear becuase of a spam filtert installed when we were plagued with spam promotoing roumanian porn sites so the offendeing . r u was edited out so it shoud read dodmd. r u ncommand

Related threads on "dBforums - Database Support Community":

Related threads on other sites:

Thread profile page for "Open report" on http://www.dbforums.com. This report page is a snippet summary view from a single thread "Open report", located on the Message Board at http://www.dbforums.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity