Wrox Programmer Forums
|
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
 
Old December 31st, 2005, 03:40 PM
Registered User
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Continuous Forms Issues

Hi, i've attached an image so it would be easier for you guys to understand my problem. I'm currently using continuous form to display my records and my problem is that i would like to have the second field in my "Rec Qty" column to retrieve the value from the first field of the Total Bal column whenever i create a new record. Is this possible? FYI My RecQty and TotalBal column counts the value from other colums automatically so it could be a problem.

http://img442.imageshack.us/img442/6096/problem1vr.jpg


Thanks
 
Old January 2nd, 2006, 11:59 AM
Authorized User
 
Join Date: Oct 2005
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Figgis
Default

Well the answer is yes you could. you would need to create some code on one of the event triggers like on insert or on current etc. You'd need to experiment to find the one that works for you. It's good to see the picture but to write code for you we would need to know exactly how your DB was structured. Is this form based on a query or direct from tables?

The way I would do this is to declare a variable and then assign the current value held in your field Dwg No something like Dwg = Me![Dwg No].Value

Then write an open record set method to get the information from your entries for this order.

tmp = "SELECT * FROM tblOrder WHERE (((tblOrder.Dwg)=" & Dwg & "))"
    Set ctrl = conn.OpenRecordset(tmp, dbOpenSnapshot)
    ctrl.movelast
    Bqty = ctrl.[Total Bal]

Me![Bal Qty] = Bqty

ctrl.close

End Sub

You’ll have to play with this idea to get it right for your situation but hopefully this may give you an idea of how to proceed with it

I am by no means an expert on this and some of the other guys on here may well have a better solution for you.

Regards

Figgis





Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting in Continuous Forms Balasarius Access 3 September 19th, 2008 07:06 AM
Populating Continuous Forms Bobbyworld Access VBA 8 May 13th, 2007 03:28 AM
continuous forms question hamffjs Access 3 January 29th, 2007 01:33 PM
Checkboxes and continuous forms mdProgrammer Access VBA 4 August 3rd, 2006 09:47 AM
Continuous Forms Ben Access VBA 2 February 17th, 2004 10:34 AM





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