Search results

  1. F

    Populate field with form's text box

    You would probably need to move the "concat" textbox into the query (RowSource) as a calcuated field instead. As a textbox in a continuous form, you cannot individually reference each textbox, only the currently selected one. Hope this helps, Brian
  2. F

    List Query name and expression

    The expression in Calculated fields are stored as a property to the field. you can use the Field object to get it. Dimension a field object and a String variable to store the espression: Dim fld as DAO.Field Dim strFldExpression as String After: For j = 0 To db.QueryDefs(i).Fields.Count - 1...
  3. F

    Close form without saving record

    Public Sub Button1_Click() If Me.Dirty = True Then MsgBox "The Form will be closed without saving", vbOkOnly DoCmd.Undo DoCmd.Close acForm, Me.Name End If End Sub
  4. F

    DoCmd.TransferSpreadsheet error

    Try using acSpreadsheetTypeExcel12Xml instead of acSpreadsheetTypeExcel9?
  5. F

    set currentuser

    What type of module is being used for the line? public gblusername as string Is it the Form's Module, a stand-alone module (i.e. "Module 1"), or a class module? If you're looking to store a variable globally as long as Accessis running or until you change it, try using TempVars...
  6. F

    VBA Search for Record in a Subform

    Is [Asset Number] coming from a field in a continuous form? Keep in mind a continuous form will return it's [Asset Number] value of the currently selected record What returns if you add: MsgBox Me.AssetNumber After "Set rst..." Are you getting the Asset Number you're expecting to?
  7. F

    General VBA Class Question

    That's what I was looking for. Thanks, Mark! Small correction on the first code snippet for those that come across this thread: Instead of: Raise ScanProgress(Me.PercentComplete) Use: RaiseEvent ScanProgress(Me.PercentComplete)
  8. F

    General VBA Class Question

    So, I've created a custom class to scan a folder for new files, open them, scrap the text and add the data to a table. The directory has several files so the process can take 5+ minutes. I am trying to have a procedure in the class to provide a status report, ultimately do so something like...
  9. F

    how to refer to Controls in Selected Report thru VBA Platform

    I would have thought my solution would eliminate your need for the counting textbox. Since each report is its own subform, you could just put a static label above each one. Perhaps I don't fully understand what you're trying to do there. In any case, multiuser FE/BE should not be a problem.
  10. F

    Automation Error Library Not Registered message

    If you replace the line: with Is the result the same?
  11. F

    how to refer to Controls in Selected Report thru VBA Platform

    Why not create a new blank report and add your "PURCH VB Query" report as two subforms to it? Above each subform control you can add a label for "Original Buyer Copy" and "Duplicate File Copy" Then just print that "Master" Report in triplicate.
  12. F

    Hiding/showing subform with a checkbox

    Hi AirCounsel, You code is triggered on an event. In this case you probably have this code executed each time the checkbox is clicked. It then checks to see if the checkbox was checked or unchecked and opens or closes the subform accordingly. When your Main form first loads that even hasn't...
  13. F

    Question Why use Implements and WithEvents?

    Sounds like he created event handlers in Access for a class object? Without seeing the code it's hard to tell. I see this in .NET often but never seen a purpose in Access VBA.
  14. F

    Entering Long Running Text in Reports

    Assuming you're using a text box to display the description, you can the "CanGrow" property (=True) and it will make the textbox larger for records with long descriptions.
  15. F

    Help needed: Run function for each record in continuous form

    Hi Kurt, You can do something like this. Just use a button on the main form or use the AfterUpdate event on the main form if you want to do this every time the mainform record is saved. Dim rs As DAO.Recordset Dim rsCount As Integer Dim i As Integer 'replace "Subform" with the name of...
  16. F

    VBA and disable alt + F11

    This question has been asked before. Refer to the post below which contains a few solutions you can explore. http://www.access-programmers.co.uk/forums/showthread.php?t=57429
  17. F

    Sum of subform fields in text box unbound.

    In either the Header or Footer of the form you should be able to just put "=Sum[SalaryIncrease])" Two things to note: [SalaryIncrease] should be the name of the field in the recordset and not the name of the control (textbox) that displays it on the form/report. If you are performing a...
  18. F

    Deploying Access 2010 Accde But Some Users On Access 2007

    You could try opening you accdb in 2007 and saving it as a 2007 accde.
  19. F

    Forgot the command

    Sounds like you need to use a Do..While or a Do..Until loop. But without more details as to what your waiting for I can't be more specific.
  20. F

    how to declare this variable

    I believe declaring it as "Single" is more efficient and requires much less memory to store. Dim vbresponse as Single
Back
Top Bottom