Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 6th, 2004, 03:58 PM
dretzka dretzka is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 dretzka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help with finding records

Hi, I'm having a problem with code for an MS 2000 database. I've created a work order database. The main entry form is named "Work Order Entry". I placed a button on this form which opens another form named "Date Search form" which contains a calendar control and a subform named "sfrmBdetails".
On this form the user clicks a date on the calendar control, and the subform shows multiple records created on that date by using a query named "Date". One of the listed fields is "WO #". The problem is this...
How can the user click on the work order number listed in the subform, and have the main form "work order entry" open to that corresponding record to edit?
This is probably an easy one for you, but for me.....
thnx much, dretzka

Reply With Quote
  #2  
Old January 6th, 2004, 04:12 PM
dsomers dsomers is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Winston-Salem, NC
Posts: 198 dsomers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Just add code to the form where you capture the selection that opens a form using the code:

DoCmd.Openform formname:="frmWorkOrder", wherecondition:= "WordOrderID = " & Me.txtWorkOrderID

Later,
Murdock

Reply With Quote
  #3  
Old January 7th, 2004, 08:59 AM
dretzka dretzka is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 dretzka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the code. The "Work Order Entry" form opens when you click the subform ID field, but dosent go to the matching record. It opens at the first one in the database. What am I doing wrong?

Reply With Quote
  #4  
Old January 7th, 2004, 09:44 AM
dsomers dsomers is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Winston-Salem, NC
Posts: 198 dsomers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Well, you should have a text box that isn't visible that you can copy the workorderID to and use that in the argument to pass to the form. It could be that the text box that is currently holding it is being cleared before you call that code and its losing its information.

Later,
David Somers

Reply With Quote
  #5  
Old January 7th, 2004, 03:27 PM
dretzka dretzka is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 dretzka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi David, thnx for the advice. I do like the idea of the textbox on the form. But still the same deal: when the Work Order Entry form pops up, it stays on the first record in the database. Any ideas?

Reply With Quote
  #6  
Old January 7th, 2004, 03:45 PM
dsomers dsomers is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Winston-Salem, NC
Posts: 198 dsomers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Post the db and let us take a look.

Later,
David Somers

Reply With Quote
  #7  
Old January 7th, 2004, 03:51 PM
dretzka dretzka is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 dretzka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How do I do that? (This is my first time posting on any board)

Reply With Quote
  #8  
Old January 7th, 2004, 03:56 PM
dsomers dsomers is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Winston-Salem, NC
Posts: 198 dsomers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
First thing is go use Compact and Repair to make the database as small as possible with what you have. The forums require the file be smaller than 102400 bytes (102kb). You can then use winzip to zip up the db and compress it even more. Just make sure the archive file size is smaller than what I mentioned. When you reply there is an option at the bottom to attach a file. Click browse and find it and select it. Then when you hit submit it is uploaded to the forum.

Later,
David Somers

Reply With Quote
  #9  
Old January 7th, 2004, 04:20 PM
dretzka dretzka is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 dretzka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks so much for your efforts. I've zipped and compressed as much as I could.
To help you navigate the database, here goes.
The opening form should be "Work Order Entry".
Click the button on the right-hand side named "View WO's by date assigned".
Chose date January 15, 2003.
Type "Cameron" as your location, and the
"Check" box for listing completed work orders.
The query result shows on the subform. Our users need to click on the subform "WO#" field and have that record pop up in the "Work Order Entry" form for editing.
Thnx, ross

Reply With Quote
  #10  
Old January 7th, 2004, 04:25 PM
dsomers dsomers is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Winston-Salem, NC
Posts: 198 dsomers User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
The db isn't attached. Make sure you attach the file using the browse button of the reply form where it has Attach File in bold.

Later,
David Somers

Reply With Quote
  #11  
Old January 7th, 2004, 08:50 PM
dretzka dretzka is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 6 dretzka User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I think the problem is that the file is too large (1,243kb). I compacted, repaired, and zipped. I also deleted forms, queries and reports that were not neccesary. Any other way I could get it to you?

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Help with finding records


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway