User Profile

Collapse

Profile Sidebar

Collapse
JohnHo
JohnHo
Last Activity: Jun 2 '09, 06:09 PM
Joined: Feb 20 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JohnHo
    started a topic subform to add records

    subform to add records

    Greetings

    I am a novice db developer with a two part question & I am hoping for some expert help.

    1) I have a bound form with a sub form to capture medications taken by a client. For each each client the number of medications can vary. I have coded a prompt (input box) to determine how many meds the client takes and them populate the subform with that many text boxes to enable detail data entry for each of the...
    See more | Go to post

  • JohnHo
    replied to currentuser question
    currentuser

    Thanks that worked fine!
    See more | Go to post

    Leave a comment:


  • JohnHo
    started a topic IsLoaded

    IsLoaded

    here is the deal I have a form with a command button to open another form. I would like to check if another form is loaded and use the code to close that form. simple right?

    Code:
     
    
    Dim obj As AccessObject, dbs As Object 
        
    Set dbs = Application.CurrentProject 
    Set frm = dbs.Forms!frmCaseInfo 
    
    If frm.IsLoaded = True Then 
    
     DoCmd.SelectObject acForm, "frmCase",
    ...
    See more | Go to post

  • JohnHo
    started a topic print report based on query

    print report based on query

    why won't this work?

    I have a form which has a text box: forms!frmCaseLo g!tboCaseID the RecordSource for the form is tblCaseLog with the field [lngCaseID]

    I would like to print a report with details entered into the form.

    For the report RecordSource I have created a query "qryCurrentCase Info" which has in the criteria for [lngCaseID] the control above on the form "frmCaseLog "...
    See more | Go to post

  • JohnHo
    started a topic print report based on query

    print report based on query

    why won't this work?

    I have a form which has a text box: forms!frmCaseLo g!tboCaseID the RecordSource for the form is tblCaseLog with the field [lngCaseID]

    I would like to print a report with details entered into the form.

    For the report RecordSource I have created a query "qryCurrentCase Info" which has in the criteria for [lngCaseID] the control above on the form "frmCaseLog "...
    See more | Go to post

  • JohnHo
    started a topic currentuser question

    currentuser question

    This is probably simple but this is the last feature for an db app and I am stumped (read fatigued).

    I have created users with the Access security feature.

    Additionally, I have a lookup table (lkupClinicianI nfo) with user information (lngClinicianID , txtUserName, etc.) for various other purposes. The txtUserName string and CurrentUser string are exactly the same. For a new record I would like to insert the clinician...
    See more | Go to post

  • JohnHo
    started a topic subForm position and requery

    subForm position and requery

    I have a subForm which has as its source a query

    I would like to populate the subForm when the user exits from the last name control

    Code:
    Private Sub txtLastName_Exit(Cancel As Integer)
    
    dim ctlLastName as control
    
    set ctlLastName = forms.frmQuestions.sbfPreviousClient.forms.txtLastName
    
    ctlLastName.requery
    
    End Sub
    I am not getting any...
    See more | Go to post

  • JohnHo
    replied to creating and using a filter
    creating and using a filter

    thanks - where is that secret kept?
    See more | Go to post

    Leave a comment:


  • JohnHo
    started a topic creating and using a filter

    creating and using a filter

    I am trying to use the filter method with a form

    Using the Access/VBA documentation I have created a filter which looks like this

    Code:
    me.filter = "lngCaseID = 18905"
    me.filter on = true

    this works fine.

    I have tried using the same method including a varible based on a control

    it looks like this

    Code:
    
    
    ...
    See more | Go to post

  • JohnHo
    replied to mainform and subform
    not (mainform and subform)

    Thanks for the reply

    I have used this method before in a previous life - representing different fields from an underlying table on sequential forms for data entry purposes. Unfortunately I don't have that app available to me now.

    Is a NULL value for a field significant in this case?

    The underlying table for frmOne, frmTwo and frmMain is the same tblLog. For...
    See more | Go to post

    Leave a comment:


  • JohnHo
    replied to mainform and subform
    not subform and mainform

    Thanks a great deal!!

    I do believe the table (tblCallLog) is normailzed as I understand it.

    However, the data entry happens in a sequence therefore the series of forms (frmOne, frmTwo). This is purely a function of how data gets entered (app requirements).

    If I eliminate the MainForm/SubForm relationship and go with a series of forms I have created the code based...
    See more | Go to post

    Leave a comment:


  • JohnHo
    started a topic mainform and subform

    mainform and subform

    I have been working with Access for a little while but have never used mainforms/subforms before.

    Here is my problem/scenario: I have a main form (frmMain) with a few other forms for data data entry (frmOne, frmTwo, ...). I have the same table (tblCallLog) as the record source for each of these forms. I have used the MainForm and SubForm with the Parent/child linking fields (lngCaseID). I would like to have the data entry in...
    See more | Go to post
No activity results to display
Show More
Working...