Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Jawad77
  • Order by date
  1. Jawad77

    How to link same fields from two different recordsets in VBA Access

    They both have predetermined fixed number of columns. I am not concerned about those records that are not in recordset 1 but are in recordeset 2.
  2. Jawad77

    How to link same fields from two different recordsets in VBA Access

    What do you think of this: r1.MoveFirst r2.FindFirst (criterion where product location are equal to product location of r1) Should it work?
  3. Jawad77

    How to link same fields from two different recordsets in VBA Access

    They have the same number of columns. Ideally they should have the same collection of (product,location) but it's not necessarily the case. That's why i thought that I should link my recordsets first so that I compare apples to apples when I perform my calculations.
  4. Jawad77

    How to link same fields from two different recordsets in VBA Access

    I can do them in SQL but it would be very labor intensive/manual. I could get the calculation done in a sec through VBA code if I could figure out how to link my recordsets. Do you know a way I could do that in VBA ? Jay
  5. Jawad77

    How to link same fields from two different recordsets in VBA Access

    This is the code I am using but I don't know how to link record sets 1 and 2 in the code with the same fields "product" and "location" Thanks! Public Function Comp() Dim ObjMyDB As Database Dim r1 As Recordset Dim r2 As Recordset Dim r3 As Recordset Set ObjMyDB =...
  6. Jawad77

    How to link same fields from two different recordsets in VBA Access

    I have two recordsets. Each one of them has the fields: "Product" and "Location" and some other fields shown below. recordset 1: Product Location LW WK2 WK3 WK4 1 10 2 20 recordset 2: Product Location LW WK2 WK3 WK4 1...
  7. Jawad77

    How to copy fields values from a crosstab query and put it in a table?

    Thanks PHV. How would I go about If I need to create a table on the fly in VBA code with number of fields equal to the number of fields returned by my crosstab query. I think I need to create a table on the fly because my crosstab query doesn't always return the same number of fields in the...
  8. Jawad77

    How to copy fields values from a crosstab query and put it in a table?

    I have a cross tab query whose output looks like this: Product Location 11/5/2004 11/12/2004 11/19/2004 1 1 20 10 30 2 1 100 40 50 I like to copy these values from my cross tab query and put them in a table with the following...
  9. Jawad77

    How to Locks Records in a textbox control Conditionally!

    I have a texbox control "RP_tbx" on my form that shows all records at the same time (continuous form view). I like to lock only records(values) in my "RP_tbx" textbox field that have a fiscal week less than the current fiscal week. Here is an example: FiscalWeek txtbox Feild1 txtbox...
  10. Jawad77

    rst!Find First doesnot work if I use a "date" search criterion

    I am trying to go to a particular record in my recordset and I using this line of code rst.FindFirst "[Weekending] =" & 1/14/2005 and it doesn't take me to the current WeekEndingDate record in my recordset. I tried using: rst.FindFirst "[Weekending] =" & #1/14/2005# but it doesn't work...
  11. Jawad77

    How to change the font/color of form field values in VBA on the fly?

    Thanks a lot VBSlammer. I really appreciate your help
  12. Jawad77

    How to use the OldValue Property of Text Box Control

    Thanks Fancy for the reply. Once I change the value in my text box ... It turns to red like you said ... Now I only want it to change back to black only if my text box value returns to the original data value. My form is in form's continuous view showing all records at the same time. Plz let...
  13. Jawad77

    How to use the OldValue Property of Text Box Control

    I have a text box contriol that is bound to one of the fields of the table. I like to hightlight/changecolor of the data values in my textbox control when they are updated. Can any tell me how to use the oldvalue property of the text box control to do it. Thanks! Jay
  14. Jawad77

    How to change the font/color of form field values in VBA on the fly?

    VBSlammer, I really appreciate your feedback on conditional formatting but I am having a hard time understanding your code. Can you be more specfic on how the above code will work. I am new at VBA programming and doesn't know much about all the powerful features it offers. Thanks!
  15. Jawad77

    How to keep the value of the variable saved unless database is closed?

    I am assigning a value to the variable in a subprocedure behind my second form. When I move to my first form, value of the variable is gone. I like to save this value even when I navigate from my second form to my first form. I tried to define my variable as static but it doesn't work. Any...

Part and Inventory Search

Back
Top