Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 19th, 2008, 05:24 AM
sms sms is offline
Authorized User
 
Join Date: Apr 2008
Location: Satdobato, , Nepal.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in populating datasheet ......

I want to populate my datasheet subform using a id from main form using sql.
How can I do this?
I am using Ms Access 2007.
  #2 (permalink)  
Old May 29th, 2008, 11:18 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Do you want the sub form to be updatable? Why SQL? Why is linking not working (even if the sub form was based on a query)? If you want to use code, what event do you want this on?

mmcdonal

Look it up at: http://wrox.books24x7.com
  #3 (permalink)  
Old May 30th, 2008, 12:08 AM
sms sms is offline
Authorized User
 
Join Date: Apr 2008
Location: Satdobato, , Nepal.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Actually, I have a datasheet subform in a main form. Let's suppose, the fields I have in the datasheet are activity and status. I have to report the status of each activity in certain period of time. Initially, I have to enter the activity and status in the first reporting period of one project. In the next reporting period of same project, I need the activity name to be displayed in the subform which I did using master field and child field. But,this made the form to display both activity and status and if I change the status of the activity, It replaced the previous status, that is what I am facing? I want to display the activity only and I have to store the records of both reporting periods?
What should I do?
thanks

  #4 (permalink)  
Old May 30th, 2008, 06:27 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

What is the table sttructure? Which columns from each table do you want to display?

mmcdonal

Look it up at: http://wrox.books24x7.com
  #5 (permalink)  
Old June 1st, 2008, 03:47 AM
sms sms is offline
Authorized User
 
Join Date: Apr 2008
Location: Satdobato, , Nepal.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Table: activity-(report_id,project_number,activity,status)

In the datasheet view, I like to display activity and status columns, but the activity column should display the contents of previous report added belonging to the same project (previous report means the report of same project as each project reports the status of each activity in every six month)
(** each project may have to submit no. of reports during project duration**)



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem populating DataGridView MacDevv C# 2005 0 May 6th, 2008 08:50 AM
populating datasheet sms Access 4 April 18th, 2008 06:48 AM
problem with populating ddl in edit of detailsview hertendreef ASP.NET 2.0 Professional 1 August 16th, 2007 12:21 PM
Problem with Populating ListView Brian_Leigh65 VB Databases Basics 3 August 2nd, 2004 08:19 AM
Populating memos in Access problem bigmish Classic ASP Databases 6 July 19th, 2004 09:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.