473,543 Members | 2,550 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microsoft Access / VBA Forum

Microsoft Office Access database and VBA - Ask questions about microsoft access queries, reports, forms, macros, modules, security, automation, functions, records, mining, visual basic for applications and more.
2
26,753
thread by: Mike | last post Nov 12 '05 by: Mike
I need to display the record number on a form - replacing the Access Navigation Buttons. I found a routine on Access Web that is supposed to work but when I use it I am told that "Object doesn't support this property or method" The code it uses is placed on the on Current Event and is as follows: With Me.RecordsetClone .Bookmark =...
1
26,767
thread by: macoi | last post Jan 24 '14 by: Seth Schrock
How can I convert my query in MS Access to change date to varchar? (SELECT LEFT(,10) AS , CAST(LEFT(RIGHT(,12),2) AS VARCHAR) AS , COUNT(FORMAT(LEFT(RIGHT(,12),2) AS INT)) AS , RIGHT(,10) AS FROM This is just a part of my long query.
4
26,793
thread by: CliffKing | last post Nov 24 '05 by: CliffKing
I am trying to use Windows Task Scheduler to run a batch file for an already open MS Access database. Below is the syntax to the batch file: Batch file: DailySalesExport.bat REM This runs the macro that exports the reports to the J drive PATH = "C:\Program Files\Microsoft Office\Office\;C:\Windows\Command" START /WAIT Msaccess.exe...
7
26,812
thread by: Mike | last post Feb 17 '06 by: Cyrille
I have a form where I have turned off the default navigation buttons. I then created my own. This works fine. The only questions that I have is on the default navigation buttons it shows total records. How can I show this? I have a text box that shows the current record using: Text1 = Me.Current I want to show the total number of records....
2
26,847
thread by: tim otero | last post Jun 28 '06 by: Terry Kreft
I should be able to figure this one out, but it's late: I'm trying to sort a report by two fields. I can do it easily if I hard-code the fields. However, I want to get user input and store the input in variables, which would then be used in the OrderBy method. Right now it looks like this and is not working: rptMember.OrderBy = strfield1,...
3
26,875
thread by: Lynx101 | last post Jun 27 '08 by: Lynx101
I am trying to move a subform onto the next record with: DoCmd.GoToRecord acForm, "MaintainAssets_edit", acNext but when I do this I get "The object 'MaintainAssets_edit' is isn't open". I know I could easily put the controls in the subform itself but I want the record controls at the top of the page, outside of the subform. Thanks for...
16
26,894
thread by: BNW | last post Feb 24 '09 by: BNW
I need help in finding out why I am not getting any data in my query. When I select all the fields in one table in my query grid and run it, the data is there. However, when I try to do it using to related tables and pull fields from both table in my query rid and run the query, data from both related tables are not showing in my query...
7
26,896
thread by: salzan | last post Feb 23 '08 by: mshmyob
I have a form in which I collect info from the user and then process various tables. Now, I need to call a report and pass two parameters to it so it’ll only select the desired records for reporting. I’m familiar with the application of OpenArgs and used it successfully to pass several parameters to other forms (using a delimiter to separate and...
7
26,936
thread by: ddsvi78 | last post Nov 13 '05 by: corey lawson
I am a complete idiot when it comes to access. Now that said, I work for a computer security company and one of our customers came to us with an access problem. They had been running fine for a long time. Then about a month ago there main server that hosted all the .mdb files crashed. So they restored everything to a new server (I believe...
2
26,939
thread by: John | last post Nov 13 '05 by: Dave M
Hi Could someone please post a split function to split a string into an array based on a separator such as comma? Thanks Regards
9
27,035
Daniel B
thread by: Daniel B | last post Jan 14 '11 by: Daniel B
I have a save button on my form that, on click, saves the new record, but I would like to have a message box appear and ask if the user is sure they want to save (yes/ok or no/cancel). Then once the user has chosen yes/ok to save the new record, the form should close. Any suggestions are appreciated! Dan B.
3
27,038
lagomorphmom
thread by: lagomorphmom | last post Sep 13 '07 by: Scott Price
Hi, Can't seem to find a work around for what I thought would be something easy to do. I have a table that contains 3 columns of date values. The date values most often, but not 100%, include the time. I would like to truncate these values so that they are date only. By that, I meant that I do not wish to format or otherwise hide the time, I...
6
27,052
thread by: kcddoorman | last post Jan 23 '07 by: NeoPa
I built a select query filled with fields from multiple tables and queries. I have one field in this particluar query that will filter out a single order number. In the criteria box I put and that does the trick for filtering for one single record. What would the criteria syntax be if I wanted to filter for multiple order numbers? I'm thinking I...
20
27,062
thread by: sesling | last post Aug 28 '07 by: Rabbit
We have a query that calculates the percentage of customers we have in three groups. (Active, Inactive, Pending). The table we get the precentages from has over 1 million records. I need to design a query that will pull 100 records from a table using the percentages of each group. Ex. if the Active Group is 53% of the database then 53 of my...
3
27,077
thread by: EverettMiller | last post Oct 28 '22 by: jameswalter
Hey Forum! In my project there is a table containing archival data. This table currently has more than 3 million records covering a period of 11 years. Each month our team scans equipment for inventory. Unfortunately, many times during the month the same piece of equipment is inventoried multiple times. What I am looking to do is to delete...
3
27,095
thread by: Baldy | last post Nov 13 '05 by: Baldy
Hi folks. I have a query opened from a menu bar. Is it possible to make the query read only? Thanks Al
19
27,097
Andrew Thackray
thread by: Andrew Thackray | last post Aug 6 '21 by: kkarbasian
Can anyone explain this error. I have the following code in a button on a form Private Sub cmdExit_Click() DoCmd.Close acForm, "ActivityMaintenance" End Sub
8
27,108
thread by: julietbrown | last post Apr 12 '10 by: NeoPa
I'm sure I knew how to do this once, but now I can't find the place to set it. A report has a group header for Organisation and then a detail section for each Contact in that organisation. The report shows up just fine, except I don't want it to break a page in the midst of the detail records, or before they start. That is, I don't want ......
3
27,118
thread by: jimatqsi | last post Jan 16 '24 by: NeoPa
So, I had this bright idea today that didn't quite work out. Or maybe it is working out but requires me to change a habit. I'm working on a form that will be a sub-form of another form. During initial development, I find it easier or better to work on the form as stand-alone entity rather than a sub-form. One reason is that I can edit the form...
6
27,149
thread by: questionit | last post Jul 25 '07 by: questionit
How to check if No Value was selected from List-Box without using any built-in Events ?
7
27,151
thread by: No Spam | last post Nov 15 '05 by: No Spam
Dear Access 2003 users, Can anyone assist me with creating either code (preferred) or a query that would remove a single field (called ID) from a table? And as a bonus question, can anyone assist with adding a field (called ID) to a table and then make it an Autonumber data type? I've been successful in adding the field via code, but...
3
27,169
thread by: keirnus | last post Aug 19 '08 by: ADezii
Hello, I'm into DB access now. I have a SELECT Query code here: Public Sub DBSelectUpdateListTable() Dim db As DAO.Database Dim rs As DAO.Recordset
7
27,175
thread by: John Baker | last post Nov 12 '05 by: Ross Presser
HI: I see the term "Me!" in a lot of Access statements, bit don't quite know what it means. In the same contexts as wondering what the meaning if "is" is, I wonder what the meaning of "Me!" is. Can someone enlighten me? Regards
21
27,215
thread by: Kit K | last post Oct 28 '08 by: NeoPa
I'm new here and will admit right off the bat, most of this is above my head, but I like Access and learning the ticks of the trade so to speak. Here is one and I’m sure there is a way, but I’m stuck. Below is triggered when a button is clicked in a form: DoCmd.TransferSpreadsheet 1, 8, "Employee", "C:\Manager.xls", True The “Employee” and...
3
27,229
thread by: jfarley | last post Apr 3 '07 by: Denburt
I have been searching everywhere to try to figure out how to use Access to open an existing Word document that is merged to an Excel spreadsheet and merge the data when it opens. I'm working with two different version, Word 2000 and 2003. I got it to work perfect in 2000, but when I use it in 2003, the Word document opens and it is not linked to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.