473,385 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to enumerate every record in the subform?

On the Order form, I have a subform, OrderDetails, which contains every
item one customer orders. After the order is complete, I would like to
update the inventory amount. How can I enumerate the records in
OrderDetails subform?
Thank you.
Ming

Nov 13 '05 #1
3 2012
Order/Inventory is a few common database application (though one of the more
difficult to design). Check out the inventory template that ships with
Access and copy or modify a working example of what you /want.
-Ed

"swingingming" <mi******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
On the Order form, I have a subform, OrderDetails, which contains every
item one customer orders. After the order is complete, I would like to
update the inventory amount. How can I enumerate the records in
OrderDetails subform?
Thank you.
Ming

Nov 13 '05 #2
rkc
swingingming wrote:
On the Order form, I have a subform, OrderDetails, which contains every
item one customer orders. After the order is complete, I would like to
update the inventory amount. How can I enumerate the records in
OrderDetails subform?
Thank you.
Ming


With Me.OrderDetails.Form.RecordsetClone
.MoveFirst
While Not .EOF
'do whatever with the current row
.MoveNext
Wend
End With
Nov 13 '05 #3
Thank you rkc,
This is what I want. And the solution is so simple :)
ming
rkc wrote:
swingingming wrote:
On the Order form, I have a subform, OrderDetails, which contains every
item one customer orders. After the order is complete, I would like to
update the inventory amount. How can I enumerate the records in
OrderDetails subform?
Thank you.
Ming


With Me.OrderDetails.Form.RecordsetClone
.MoveFirst
While Not .EOF
'do whatever with the current row
.MoveNext
Wend
End With


Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Rey | last post by:
Howdy, all. Appreciate your help. Have a one to many relation between a client and visit table. In the visit subform, I have a visittype and counselor field which are comboboxes. If I set...
4
by: YFS DBA | last post by:
How do I use VBA to insert a *new* record into a subform? I have a master form with client information, and a sub form with billing information. I want to click on a button ("Add Data") and have...
0
by: Carl | last post by:
I have a main form with navigation buttons on it and a label showing for example Record 1 of 15 using recordsetclone on it and eveything works fine. When I move through the records the record...
5
by: Galina | last post by:
Hello A have an application in MS Access 2000. It has a form (courses), which has a subform (course occurrences), which has a subform (occurrence learning aims). The Learning aims subform is...
1
by: sixsoccer | last post by:
I have built a database with a <Mainform> and a <Subform>. My problem is twofold. 1. My subform is set as a continuos form with AllowAddiotions set to NO (ie. a list of Issues to the client on...
6
by: Steve | last post by:
I have a form, primary subform and secondary subform. A tab control takes up all the area of the primary subform. There are about 15 tabs on the tabcontrol. Each tab contains fields from the same...
5
by: Bob | last post by:
Hi Everybody I have a form called frmListBox that is connected to a table tblListBox. This is opened from a form called "frmInvoiceOrder" which has a subform called "zfrmInvoiceOrder" and...
5
by: tdmailbox | last post by:
I have a form with a child form. In the child form there is a list of names that can grow quite large. On the parent form I want to display the first name from the child form. I set up a test...
12
by: Danny Colligan | last post by:
In the following code snippet, I attempt to assign 10 to every index in the list a and fail because when I try to assign number to 10, number is a deep copy of the ith index (is this statement...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.