Search results

  1. K

    How to back up SQL Server logins

    Title pretty much says it all. I want to be prepared if the server ever takes a serious hit. I'm already backing up the individual databases but I'm not sure if the logins are part of the master db or what.
  2. K

    Problem with Subform showing info before I ask it to

    The subform is probably linked to whoever is in the combobox. What you'll want to do is ensure that nothing is selected there by default. In the form_load event set the value of this combobox to null. Might also be able to set the default property as null as well but my memory is hazy on whether...
  3. K

    Updating Records Triggers Write Conflict

    Thanks! I appreciate answering something that was already covered.
  4. K

    Updating Records Triggers Write Conflict

    I have an MS Access frontend to a SQL Server 2000 database. The database was originally an Access mdb that I upsized using SQL Server's DTS wizard. After setting the primary keys and identities for the original autonumber fields I began to test the interface to make sure it still worked. I...
  5. K

    Help please

    You shouldn't have cost fields in each of these tables. You should have tableEquipment equipmentID equipmentName tableCost costID equipmentID cost Not sure what your loans table is. Computed values should never be stored. Compute them at run time.
  6. K

    how to specify parameters in sql statement?

    I don't remember, does access have the date/time picker control? The trick will be getting the users to enter data in date/time format. I say have 2 textboxes (maybe put a date/time mask on them) and a button, user puts in the start/end of the range and presses the button. You build the string...
  7. K

    Data 'disappears' from my database

    I inherited this database and I can't figure this out so I'm looking for some causes. the database is in one .mdb file, the interface in another and links to the database via the linked table manager. The tables aren't normalized, nor was there any attempt at relational integrity (Strike 1)...
  8. K

    insert sql is inserting multiples of the same row?

    Anyone who wants to take a crack at it can check the attachment I uploaded.
  9. K

    insert sql is inserting multiples of the same row?

    The code is run during a Click Event I have stepped through it and it only runs once, but the record appears 2-3 times.
  10. K

    insert sql is inserting multiples of the same row?

    Here is the code Dim insertStatement As String insertStatement = "INSERT INTO tableDisplay (name, manufacturerID, cableID, transportInterfaceID, powerCableID, backLightInverterID, notes) " & _ "VALUES ('" & subFormDisplay!modelNameTextBox & "', " & _...
  11. K

    How do I insert data from one table to another?

    I want to set my insert such that Insert into tableA (x,y,z) = (SELECT x,y,z FROM tableB) WHERE NOT EXISTS (select x,y FROM tableA,tableB WHERE tableA.x = tableB.x AND tableA.y = tableB.y) Basically I want to insert data in tableA from tableB if it does not exist in tableA yet. Access says...
  12. K

    Error 3022 - Duplicate Key/Index

    That didn't do the trick specifically but I finally caught on. I made the assumption that the query critieria were being fed into each new record, and it wasn't. So while I was looking for records that had x,y,z the records being created had x,null,null,null.
  13. K

    Error 3022 - Duplicate Key/Index

    It's a query. I can open the query directly and make changes and additions and deletions.
  14. K

    Error 3022 - Duplicate Key/Index

    Thanks! That however didn't solve my original issue, which I think something in my query broke, and all I did was copy and paste the sucker. Any suggestions on running that down? I can add records manually, but when I attempt to add them on the subform they don't save to the table, and if I try...
  15. K

    Error 3022 - Duplicate Key/Index

    I tried requering it but it says it can't find my subform. This is the proper way to do it correct? Forms!frmWorkshop!frmSubWorkshop.Requery I'm starting to think something in my query got hosed, now I can add things on the subform but they're never put in the table (But existing records can...
  16. K

    Error 3022 - Duplicate Key/Index

    Just when I thought I had my problem licked... I created a subforum with an updateable query, and this works. I can view the results of the query, modify them and add new records. However I shortly realized that once I deleted a record (either by some VBA code, or by SQL) that I could not...
  17. K

    What does this do? - Deleting records from subforms

    I tried that, no change in the problem. I also tried doing it via SQL and that will delete the record, but the problem of the duplication error message persists. What forum could most likely handle this issue?
  18. K

    What does this do? - Deleting records from subforms

    I have a subform that I'd like to put a delete button on, so that it deletes each specific record. This was left over by the previous programmer for this purpose but without any documentation, and it doesn't seem to work as intended. Using the below code allows you to delete the record, but...
  19. K

    How do I write an "updeateable query"

    Thanks for the links. Just to bounce this off someone though I have 3 tables, tblClient: ClientID (primary key), FirstName,LastName tblPrograms: ClientID, OrgID, ProID, Semester, Duplicate (all of these fields is the primary key), Role (Role is a foreign key LookupID) tblInfo: LookupID...
  20. K

    How do I write an "updeateable query"

    What sort of complicated stuff? What is the query supposed to look like? I can't even use the query design grid if I don't know if I'm supposed to pull something specific or not.
Back
Top Bottom