User Profile

Collapse

Profile Sidebar

Collapse
lovelydan
lovelydan
Last Activity: Apr 10 '14, 01:29 PM
Joined: Mar 27 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • lovelydan
    replied to Counting Assests
    where do i attach the SQL..i want the results of the SQL to be stored in a different table so data i can use it for the aggregated report later. Example will do. thank you.
    See more | Go to post

    Leave a comment:


  • lovelydan
    replied to Counting Assests
    i just have a table to store different assets in a field called assName eg; CPU, Monitor, UPS, Table...etc. so what i want to do is to design a module that can counts each item separately. for example i used to use a module below to do this.
    Code:
    Do Until Myset.EOF
            Select Case AssetName
                Case Is = "CPU"
                    countCPU = countCPU + 1
                Case Is = "Monitor"
    ...
    See more | Go to post

    Leave a comment:


  • lovelydan
    started a topic Counting Assests

    Counting Assests

    i want to design a module to count each assets on a table so i can generate an aggregated data report of for each item. this is where i got stuck:Help!

    Code:
    Private Sub countAssets()
     Dim mydb As Database, MysetAssets As Recordset, MysetSoftware As Recordset
        Set mydb = DBEngine.Workspaces(0).Databases(0)
    '............................................................................
        
        Set MysetAssets
    ...
    See more | Go to post

  • lovelydan
    started a topic referring to a control

    referring to a control

    how do i refer to a tabbed subform control or field from main form.

    eg. myset![empID]= me.empid
    Code:
     myset![empID]= me.empid
    works well when empid is within main form..what about when empID is within a page on a tabbed subform.

    i wrote:
    Code:
    myset![empID]=me.tabCat36.empid
    and it doesnt work. Help
    See more | Go to post

  • lovelydan
    replied to Syntax Error
    thanks Neopa.. its works wonders, i didn't even change a thing. thanks again. till we meet again. my regards
    See more | Go to post

    Leave a comment:


  • lovelydan
    replied to Syntax Error
    okay... here i want to filter a form by Time(ntsTime) and serial number is Text data type and thats where i get stuck with the coding the two in one code/Line.
    See more | Go to post

    Leave a comment:


  • lovelydan
    replied to Syntax Error
    this works fine when tested:
    Code:
    Public Sub frmNotes()
    DoCmd.OpenForm "frmNotes", , , "ntsTime=#" & Me.ntsTime.Value & "#"
    End Sub
    this also works when tested separately:
    Code:
    DoCmd.OpenForm "frmNotes", , , "equipGovSerialNumber='" & Me.equipGovSerialNumber.Value & "'"
    now the problem comes when im trying to mix them together like:...
    See more | Go to post
    Last edited by NeoPa; Aug 11 '11, 11:56 AM. Reason: Fixed formatting and tags

    Leave a comment:


  • lovelydan
    replied to Syntax Error
    an example will do or are you saying the code is okay?
    See more | Go to post

    Leave a comment:


  • lovelydan
    replied to Syntax Error
    Yes... the code brings the error with the correct result but wont open the form im trying to filter due to the error.
    See more | Go to post

    Leave a comment:


  • lovelydan
    started a topic Syntax Error

    Syntax Error

    im trying to run this code from a button but i get an error "syntax error(missing operator)in a query expression": where do i go wrong?

    Code:
    DoCmd.OpenForm "frmNotes", , , "SerialNumber='" & Me.SerialNumber.Value & "'" & "ntsTime='" & Me.ntsTime.Value & "'"
    See more | Go to post

  • lovelydan
    replied to Filtering a form
    thanx i managed.... hope you guys enjoy your day
    See more | Go to post

    Leave a comment:


  • lovelydan
    replied to Filtering a form
    If Text_EmployeeID is the name of the textbox that contains the employee Id in the subform and Frm_Employee_De tails is a form that displays the details about an employee, i have used:
    Code:
    DoCmd.OpenForm "Frm_Employee_Details", , , "empID=" & Me.Text_EmployeeID.Value
    but i get a data type mismatch error 3464.
    See more | Go to post

    Leave a comment:


  • lovelydan
    replied to Filtering a form
    Nic;

    i do get the idea and i know this would work with subforms..but what iam trying to do is to open a new form from a subform not opening another subform. so i dont know if the Parent. expression will work.
    See more | Go to post

    Leave a comment:


  • lovelydan
    started a topic Filtering a form

    Filtering a form

    I have designed a form(main form) which has a record source that runs subforms. this works perfectly. I also have a macro that is attached to this subform which filters records on a different form. One of my subforms contains personnel IDs and few details. When I click on the ID field the macro runs and opens another form, filtering it by the ID number. This works when the subform is opened independently but when the subform is opened on a record...
    See more | Go to post
    Last edited by NeoPa; Aug 1 '11, 02:53 PM. Reason: Text-speak or similar abbreviations are specifically NOT allowed when posting technical questions in a forum. Similar questions in future will be deleted summarily.

  • NeoPa
    thanks..i got it and i really appriciate your help.

    my regards, Lovely
    See more | Go to post

    Leave a comment:


  • sorry again 4 tagging.. are you sayin i should use "&" instead of "AND". i tried it and i still get the error. NeoPa, im still an a learner on this, but i wii get there. so where im i suppose to amend.
    See more | Go to post

    Leave a comment:


  • okay, now i want to filter using the 1st and second combo box and i added the following code line number 5;
    Code:
    strFilter = "[MinName] Like '" & Me.cmbMinistryName.Column(1) & "*'" And _
    "[MinDistrict] Like '" & Me.cmbDistrict.Column(1) & "*'"
    and im getting an error message "Type mismatch"

    any help..!
    See more | Go to post
    Last edited by NeoPa; May 8 '09, 09:13 AM. Reason: Please use the [CODE] tags provided

    Leave a comment:


  • eeeh. programming is not a joke neh...i have never done VB at school i just got interested and started reading books and the outcome was fruitful.

    thanks bout the design...i was confident but now u make me feel more confident and willing to do more.

    thanks, its working now...im glad. now i have to work on the other combo boxes...

    regards,Lovely
    See more | Go to post

    Leave a comment:


  • NeoPA;

    just a reminder...i know you always have your dish full..
    See more | Go to post

    Leave a comment:


  • NeoPA

    okay thanks...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...