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...
User Profile
Collapse
-
subform to add records
-
currentuser
Thanks that worked fine! -
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", -
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 "... -
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 "... -
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... -
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
I am not getting any...Code:Private Sub txtLastName_Exit(Cancel As Integer) dim ctlLastName as control set ctlLastName = forms.frmQuestions.sbfPreviousClient.forms.txtLastName ctlLastName.requery End Sub
-
creating and using a filter
thanks - where is that secret kept?Leave a comment:
-
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: -
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...Leave a comment:
-
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...Leave a comment:
-
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...
No activity results to display
Show More
Leave a comment: