User Profile

Collapse

Profile Sidebar

Collapse
imrosie
imrosie
Last Activity: Oct 26 '07, 01:43 AM
Joined: May 2 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • imrosie
    replied to clear all controls on a subform
    Thanks Jim, I realize you tested it...so I assumed it must have worked for you.
    Yes I was aware of the 'txt'...

    The code doesn't clear the txt's so could it be that I've improperly formatted the string for the subform (which has spaces inthe name, Order Details Subform)?

    In this part, which is the only area I really changed. thanks again.
    Code:
    Call BlankTXTControls(Me![Order Details Subform].Form)
    ...
    See more | Go to post

    Leave a comment:


  • imrosie
    replied to clear all controls on a subform
    Hi Jim,,,

    I put the code in as follows:
    Code:
    Sub BlankTXTControls(f As Form)
    On Error GoTo Err_BlankTXTControls
    Dim i As Integer, C As Control
    For i = 0 To f.Count - 1
        Set C = f(i)
        If Left$(C.Name, 3) = "txt" Then
         C = Null
        End If
    Next i
    Exit_BlankTXTControls:
        Exit Sub
    Err_BlankTXTControls:
        MsgBox Err.Description
    ...
    See more | Go to post

    Leave a comment:


  • imrosie
    replied to clear all controls on a subform
    Jim,,,this is great...I'm going off to try this now. I'll report back for sake of others...I remember you (plate of spaghetti??)... I'm sure this will be good code. take care
    Rosie...
    See more | Go to post

    Leave a comment:


  • imrosie
    started a topic clear all controls on a subform

    clear all controls on a subform

    Hello,

    Does anyone have a simple cmd to clear all controls on Subform without using the SetFocus? Two of the controls are expressions, so they can't be set to Null. Then after clear return control to the main form?

    thanks
    Rosie
    See more | Go to post

  • HIi MikeTHeBike,

    Yes this forum, but I phrased the title different. Got no response so I thought my title was confusing. I rephrased. thanks
    Rosie...
    See more | Go to post

    Leave a comment:


  • How to make cmd buttons (undo & clear) work on subforms

    Hello anyone,

    Is there someone that has a routine to do this? On the Main form I have cmd buttons that clear and undo..

    Specifically the Undo doesn't undo the subforms, just the Main form. I also am not sure how to make my clear button, clear out all controls on all 3 forms.

    thanks
    See more | Go to post

  • Can a combo box be restricted to display certain data

    Hello All,

    I have a combo box that selects a customer and brings up all of the data associated with that customer (Billing data (on Main form), Order data (on Sub form #1) and Shipping Data on Sub form #2)...

    The combo box is unbound and uses a select table/query.
    Both subforms are 'bridged together' with the main form, so when you select a customer name all 3 forms populate...

    Main form - based...
    See more | Go to post

  • imrosie
    started a topic cmd buttons don't work with subforms

    cmd buttons don't work with subforms

    Hello experts,

    I have 3 cmd buttons (undo changes, clear order and save order). I added a second subform and moved some controls around...Now I'm having difficulty getting them to work again on either of the subforms, only works ont the main form. The two subforms are bridged together to the Main form through a text control..

    Has any experienced this and can direct me how to get them working again? thanks. Better yet,does...
    See more | Go to post

  • imrosie
    started a topic calculations and formatting issues

    calculations and formatting issues

    Hello All,

    I'm having trouble calculating my sales tax, adding freight charges and sale tax to the 'Order Total'. Help someone......

    I have 2 subforms on a Main form....

    In subform 1(called Order Details Subform) , I calculate 'TheOrderDetail Total (from unitprice X quantity It calculates successfully and displays on the Main form in a control labeled 'Order Subtotal'.

    Code:
    =Forms![Add...
    See more | Go to post

  • imrosie
    replied to Autonumber
    OK...that's fine...I'll definitely zip it now. thanks FishVal,,,

    BTW, I'm aware you're busy, I do really appreciate the help


    Ignore the email msg....I've downloaded your Vcard and sent the file...
    Rosie...
    See more | Go to post
    Last edited by imrosie; Sep 10 '07, 06:49 PM. Reason: need email address

    Leave a comment:


  • imrosie
    replied to Autonumber
    I'm sorry,,,I must have been sleepy and not reading your post correctly...I inadvertantly posted the code for clearing the form.......
    this is how the code looks now for opening a new record looks:

    'custname' is a combo box; using Row/Source/Type query
    and the Row Source is:
    Code:
    SELECT DISTINCTROW Customers.CustomerID, [FirstName] & " " & [LastName] FROM Customers ORDER BY [FirstName] & ","
    ...
    See more | Go to post

    Leave a comment:


  • imrosie
    replied to Autonumber
    To: FishVal

    One more mention...the word 'nuked" defined:
    The control (customerorderi d) stops working all togeher. The next customer I select, NO customerorderid (OrderID) comes up with their product information. The control is blank. I've tried this, but it does nothing:

    Code:
    Forms![Add an Order and Details]![Order Ship Details Subform].Form.customerorderid.Requery
    thanks,
    Rosie
    See more | Go to post

    Leave a comment:


  • imrosie
    replied to Autonumber
    Great....I will put it here....but let me give you some backup information...

    I have 1 main Order form with 2 subforms that I have bridged together.

    Subform-1 ('Order Details Subform')suppor ted by the Order Details table; used to hold data for products. Child link is OrderID, Master link is a 'bridge' control.

    Subform-2 ('Order Ship Details Subform') supported by the Order table; holds Shipping and...
    See more | Go to post
    Last edited by imrosie; Sep 10 '07, 01:43 AM. Reason: I accidentally cut off some of the code text

    Leave a comment:


  • imrosie
    replied to Autonumber
    Btw


    Hi FishVal,

    You're not forcing a decision,,,the problems with my db are.
    I'm got the entire db ready to go except for one last problem.
    When I clear the Main Order form (not the person's name,address, but clear the Product info) to start a new product order, I can't clear the control 'OrderId'...... .because it's an autonumber.

    Again, my assumption is that wtih your code instead,...
    See more | Go to post
    Last edited by imrosie; Sep 9 '07, 02:08 AM. Reason: add comments

    Leave a comment:


  • imrosie
    replied to Autonumber
    Hi FishVal,

    My situation, I'm using autonumber in sseveral tables (Customers, Orders, OrderDetails, Shipping Methods, and a couple others.

    My assumption is that I need to change my autonumber fields in each table to number fields (remove PK, after 'breaking' the relationships). Next I'll put in your code with the appropriate modifations and restore relationships (and PK) to my new 'number' fields. Then, I"ll re-import...
    See more | Go to post

    Leave a comment:


  • imrosie
    replied to Autonumber
    FishVal,

    Thanks, I trust your opinion....I'll put your code in and run it,,,then I'll report back for benefit of others...My plans are to replace PK CustomerID in 'Customers' and OrderID in Orders (both have utilized Autonumbers in the last db), with this "incrementi ng number" routine...Curre ntly each PK is used in two different forms, so that should be fine.

    I've had my fill of utilizing autonumbers for these...
    See more | Go to post

    Leave a comment:


  • imrosie
    replied to Autonumber
    Hi FishVal,

    I want to use this 'Incrementing Number' scheme, but my concern is the "multiple users" asynchronously updating.
    Can you provide a code example of how use the "ADO/DAO recordset locking the whole table".....I want to stay away from actual autonumbers, so I need to try ADO as my solution.

    I will ensure that the PK relationships are set to [referential integrity] and the indexed field...
    See more | Go to post

    Leave a comment:


  • imrosie
    replied to Link Master and Child fields issue
    Hi MGrowneyARS,

    Yes it probably would, if I knew how. I'll try to figure that one out. The 'UNDO'I just need to clear those fields in a sub called 'beginanorder' on click, like so:
    Code:
    Private Sub beginanorder_Click()
    [Forms]![Add an Order and Details]![Order Details Subform]![ProductID] = Null
    I followed your example...I get the run-time error '438' property doesn't support this property or object....HuH?...
    See more | Go to post

    Leave a comment:


  • imrosie
    replied to Link Master and Child fields issue
    Jim, you're hilarious....an yway, here are some meatballs Jim......

    Yes I got mixed up, meant controlname, not variable.

    As for Subtotal, Salestax and OrderTotals, now it's working....I didn't change any naming scheme inthat respect.

    I've tried this to format the DoCmd.OpenRepor t, but it's not working,,,,,so I must be formatting the filter wrong. any suggestions? Yes, the subform with customerorderid is...
    See more | Go to post

    Leave a comment:


  • Well Well Well,,,,,,

    It's working,,,,it's actually working. My mistake on the colon.....I added the requery and Wow, it's working. thanks so much Denburt.

    take care.
    Rosie
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...