Hello
I'm trying to update my contacts form with a combobox. I'm using Access 2k. I tried this code:
private sub cboName_AfterUpdate()
me.recordsetclone.FindFirst "[ID] = " & Me![cboName]
me.bookmark = me.recordsetclone.bookmark
end sub
private sub Form_Current()
cboName = ID
end sub...
Hello
I'm trying to open an Access db that is an older version than my 2k but I'm getting the error "Compile error. Can't find project or library". It refers to this bit of code -
Dim dbs as Database
If I press the help button on the popup with the error description it refers to the help...
Hello
I want to delete a selection from a listbox. My wizard created this delete routine for me but I think it pertains to a textbox choice for deletion.
Private Sub cmdDeleteEmployee_Click()
On Error GoTo Err_cmdDeleteEmployee_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, ...
Hello
I need to update a textbox that shows the number of items in a listbox. I tried using this code but I suspect that asCmdSave Record isn't right
Private Sub lstEmployees_AfterUpdate()
DoCmd.RunCommand acCmdSaveRecord
DoEvents
txtCount.Requery
End Sub
It doesn't do anything...
Hello
I'm trying to update a lstbox after adding an entry to it through a textbox. I suppose it works like I add make an entry to the textbox that goes to a table. The listbox shows records from the table from it's RowSource. I hope that made sense. It will show the update if I leave the form...
Hello
How do I count the number of items in a listbox? I've been playing around with the listcount prop but with no luck. I wish to put the number on a label or textbox.
thankQ
Hello
I would like to sort the items in a listbox alphabetically.
In visual basic there is a sort property but I don't see one in Access 2k. What is the best way to sort listbox items?
Duane
Hello
Am I losing my mind or is it not possible to put a button on a report? I just get the magnify glass with a + or a - in the middle of it. Not the usual cursor arrow.
Duane
Hello code gurus
Is it possible to get the recordcount without using ado? I just want to know how many entries are in my employees table.
In Visual basic I used code like...
lblRecord.Caption = adoPrimaryRS.RecordCount
but as I mentioned I didn't go with using recordsets etc in this project.
Hello
How can I display current date in a textbox? ex June 12, 2005. I don't want 6/12/05 or Sunday, June 12, 2005.
I tried
=Format(Date(),"mmmm dd "," yyyy")
in the control source of the textbox on a form but I just get #Error in the textbox.
Hello
I'm trying to call this function but am getting the error "ByRef argument type mismatch"
I'm using Access 2k and calling this from form code.
Private Sub cmdDeleteRecord_Click()
Call DelRecord(strName) ' error here
End Sub
' delete routine
Private Sub DelRecord(strName As String)...
Hello
I'm trying to pull a report from a form and have a textbox in the report have focus. I'm using this code in a click event...
Reports!rptRotationTwoDay!txtDate2.SetFocus
but I'm getting the error"MS Access doesn't allow you to use this method in the current view.
Any ideas?
thanks Duane
Hello
I am using Access 2k and what I'm trying to do is create an expression that will change a Date label on a report. It is a two column report and each column is for a different day, generally consecutive days. But, if the current day is Friday it will ask the user if they are working the...
Hello
I am using Access 2k and when I show my report it defaults to 100%. I have been able to maximize and minimize but what I would like to do is the best fit choice.
A friend gave me this code...
Private Sub Report_Activate()
DoCmd.OpenReport "rptRotationOneDay", acPreview...
Hello
I am using Access 2k and have a form with roughly 50 combo boxes. They are in 3 columns as each column represents a time slot and each row is an equipment set. The combos will pull down with a list of employee names. It's basically a rotation schedule for work.
Anyway I would like some...
Hello
I found this query bit that does a nice job of retrieving all the tables in my db.
SELECT MSysObjects.Name FROM MsysObjects WHERE (Left$([Name],1)<>"~") AND (Left$([Name],4) <> "Msys") AND (MSysObjects.Type)=1 ORDER BY MSysObjects.Name;
So I have a combobox that uses this query to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.