Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 31st, 2005, 03:40 PM
Registered User
Join Date: Dec 2005
Location: , , .
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.


Reply With Quote
  #2 (permalink)  
Old January 2nd, 2006, 11:59 AM
Authorized User
Join Date: Oct 2005
Location: South Ockendon, Essex, United Kingdom.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Figgis

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)
    Bqty = ctrl.[Total Bal]

Me![Bal Qty] = Bqty


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.


Reply With Quote

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

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

All times are GMT -4. The time now is 10:45 PM.

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