Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 22nd, 2003, 07:29 AM
Registered User
 
Join Date: Dec 2003
Location: Olanesti, Vilcea, Romania.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help

Public Sub RapoarteTTT()

Dim recrap As Recordset
Dim rpt As Report
'purpose: at each open of database this sub



'DoCmd.OpenQuery ("stergrap") (_DELETE ALL RECORDS From TAB_Rapoarte table)

Set recrap = CurrentDb.OpenRecordset("TAB_Rapoarte") ' TAB_Rapoarte is a table with fields
' Nume-text 255
' Descriere - text 255

For Each rpt In Reports

recrap.AddNew
recrap!nume = rpt.Name
recrap!descriere = rpt.Caption
recrap.Update

Next rpt
recrap.Close
Set recrap = Nothing

End Sub

-----------
This sub don't work that i want, the table TAB_Rapoarte is empty after ai run it..
I use win 2000 / access 97 or win XP with access 2000
This sub don't work in no one..
Why?

Please excuse my bad english, i don't spek verry well ..

Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off




All times are GMT -4. The time now is 06:04 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.