ms-access

Split one field/column into Multiple Columns with varying figure counts SQL Access

廉价感情. 提交于 2019-12-25 11:04:52
问题 In Access, I need to write a SQL query to separate these rate codes into separate fields/columns from looking like this: $= ** ;= AA AC BB1 CA5 CC4 CC5 CC6 CC7 CC9 CD1 CI CR D0 D1 D2 D3 D9 F> F> FA7 FA9 FB1 HA6 KJ P* P? PW PZ QG V4 WJ 1D 2O $= ** ;= AA AJ BB1 CA5 CC4 CC5 CC6 CC7 CC9 CD1 CI CR D. D0 D1 D2 D3 D9 FA7 FA9 FB1 HA6 I} KJ P( PW PZ QG V4 1A 1D 2V 3} To this: AA BB1 CA5 P? AA BB1 CA5 I've researched this topic extensively but there is no question regarding lines with varying figure

match query datetime in database ms access

核能气质少年 提交于 2019-12-25 10:57:08
问题 hi i have datetime format in database access like this 1/18/2014 4:14:52 PM (M/DD/YYYY h/mm/ss) when i tried to select query whith this following code Global.dbCon.Open(); string kalimatsql2 = "SELECT * FROM Quiz_Occurrences WHERE Occurred = " +dt2+ " ORDER BY ID"; Global.reader = Global.riyeder(kalimatsql2); if (Global.reader.HasRows) { while (Global.reader.Read()) { int idku = Convert.ToInt32(Global.reader.GetValue(0)); MessageBox.Show(idku.ToString()); } } Global.dbCon.Close(); it's give

MS Access 2007 Append query trouble

最后都变了- 提交于 2019-12-25 10:51:03
问题 I have an append query that is trying to append some records to one of my tables. However, I am getting an error that says “didn’t add 1200 records due to key violations.” 1200 is the total number of records I am trying to append. I don’t understand why I am getting this error because all of my columns in the destination table allow duplicates (even though this append query doesn’t duplicate any information), and if I copy the structure of the table and append the records to that, everything

password protect access 2010 options

旧城冷巷雨未停 提交于 2019-12-25 09:50:32
问题 I understood that it is possible to set a password to an access database to prevent users from opening it. But is it also possible to set a password to prevent people from changing the "current database" options in the "Options" section? I'm looking for a feature similar to Excels "Protect Workbook" method. 回答1: Is this what you are after ? 1.Open Microsoft Access 2010 and open the database that you wish to password protect in exclusive mode. You may do this by selecting Open from the file

Get JSON returned from PHP ADO connection to MS-Access DB

人盡茶涼 提交于 2019-12-25 09:44:50
问题 I'm trying to get JSON string returned from MS-Access DB Query. I get the recordset ($rs) fine, but trying to loop through to return JSON, without knowing all the fields in recordset. The following returns what I want but in [["aaa":"bbb","ccc":"ddd"]] not the [{ ... }] i'm looking for. $num_columns = $rs->Fields->Count (); //echo $num_columns . "<br>"; $arrColumns = array(); for ($i=0; $i < $num_columns; $i++) { $arrColumns[] = $rs->Fields($i); } $arrResult = array(); while (!$rs->EOF) {

MS Access Frontend won't Open with an Encrypted Backend

跟風遠走 提交于 2019-12-25 09:41:27
问题 I'm facing a strange issue in MS Access (2016). When I split my database into a frontend and a backend, and encrypt the backend, my frontend fails to open. As I open my frontend after splitting the database and encrypting the backend, I should see linked tables, which should not open until I relink them by entering the encryption password. Instead, I'm always taken to Access's 'file open' menu (Image), as if the frontend never existed! As soon as I decrypt the backend, the frontend starts

Can't update date in aspx to a MS-ACCESS table

两盒软妹~` 提交于 2019-12-25 09:40:53
问题 Hello I'm having problem with updating datatypes I insert the date in the C# part like this string strSQL = "INSERT into Frettir (CreatedBy,CreatedOn,Title,Description,Starts,Ends,CatId,SectionId,ArticleExt,Myndatexti,MyndUrAlbumi,NrMyndar) values(?,?,?,?,?,?,?,?,?,?,?,?)"; cmd.Parameters.Add("@Starts",OleDbType.Date).Value = dstartdate; but I update in the aspx part like this UpdateCommand="UPDATE [Frettir] SET [Title]=@Title,[Description]=@Description,[CreatedBy]=@notandaID,[ArticleExt]=

Using Excel MS Query to pull data from Access

岁酱吖の 提交于 2019-12-25 09:21:37
问题 I'm using Microsoft Query in Excel to pull data from an Access database. I don't own the Access database, but I have permission to query its tables and queries using my Excel spreadsheet. I'm trying to pull data between tomorrow at 01:00:00 and the following morning at 00:00:00. I've tried everything from WHERE (acct_data.Date Between DATEADD(DAY,1, DateADD(HOUR,1, GETDATE())) And DATEADD(DAY,2, GETDATE()))) to WHERE (acct_data.Date Between DATEADD(DAY,1, DateADD(HOUR,1, GETDATE())) And

Access Form Will Not Close

蹲街弑〆低调 提交于 2019-12-25 09:15:52
问题 I have an Access form that is supposed to close its predecessor - If CurrentProject.AllForms("fmFileCheck").IsLoaded Then DoCmd.Close acForm, "fmFileCheck", acSaveNo Else End If The IF statement works fine (I have injected a message box to test) but the form simply doesn't close. No error message or anything, it just sits there and tants me, like a squirrel taunts a cat. Edit: The form opens on the "current" event of its predecessor and the code above executes on "current" - but if the code

Access - Export subform filtered results with custom file name

馋奶兔 提交于 2019-12-25 09:11:38
问题 I'm exporting filtered results from my subform to Excel, and naming Excel file as I want. Here's my code : Sub XcelExport() Dim Results As Recordset Dim RecCount As Integer Dim XcelFileName As String Dim FilePath As String Dim wb As Excel.Workbook Dim XcelFile As Excel.Application 'Set name of file with date XcelFileName = "MySubform_Results_" & Format(Date, "dd/mm/yyyy") & ".xlsx" ' Set destinaton folder of saved file FilePath = CurrentProject.Path & "\" & XcelFileName Set XcelFile = New