Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. StevenFromSouth

    VPN Connects but cannot access remote network computers or folders

    Refer to this video for the solution https://www.youtube.com/watch?v=UOG-UlXNmDw Things to do: [ol ] Make sure that the VPN Server's IP assignment is within the DHCP Pool. I was using from 2.2.2.1 when I should have used from 192.168.1.1 (eg 192.168.1.50 to 192.168.1.59) Allow UDP 1723 in the...
  2. StevenFromSouth

    VPN Connects but cannot access remote network computers or folders

    I am connecting to a remote network via VPN. I can make the connection but cannot access the remote's local network even though I have allowed access on the Server's Incoming setting. The login account has read/write permissions to the local shares. Both Remote and Client have different local...
  3. StevenFromSouth

    Delete record from one table if it does not exist in another

    The code works. I just changed this UnMatchedQry = " SELECT PID " & _ " FROM Purchases " & _ " WHERE PID NOT IN (Select PID From PurchaseDetail)" to this UnMatchedQry = "SELECT Purchases.PID" & _ " FROM Purchases LEFT JOIN PurchaseDetail ON...
  4. StevenFromSouth

    Delete record from one table if it does not exist in another

    I'll try it out and see how it goes. Yes the Access crashing is something that I need to address and been trying to do for a couple of weeks now. On a combobox in the subform I am using the Find As You Type code provided by MajP Link Sometimes when the combobox gets focus Access freezes as crash.
  5. StevenFromSouth

    Delete record from one table if it does not exist in another

    I did answer. I said just the 1 record in the Purchases table but not in the PurchaseDetail table. It is generated when I open the Purchase form for Data Entry and Access crashes. The ID was not passed from the Main form to subform which is the PurchaseDetail recordset.
  6. StevenFromSouth

    Delete record from one table if it does not exist in another

    I only have to delete the one record that is created in the Purchases table when Access crashes. Using the "NOT IN" method takes a while just to delete that one record.
  7. StevenFromSouth

    Delete record from one table if it does not exist in another

    delsql = " DELETE FROM Purchases " & _ " WHERE PID NOT IN (SELECT PID " & _ " FROM PurchaseDetail)" CurrentDb.Execute (delsql) This takes very long to execute sometimes even freezing Access. The other one works fine but as you said it only deletes one. How to delete all the...
  8. StevenFromSouth

    Delete record from one table if it does not exist in another

    Yeah I know. I have a Main form with a subform on it, what happens is that sometimes when I move from the main from to the subform ms access crashes and the ID is left in the Purchase Table and not in the PurchaseDetail table.
  9. StevenFromSouth

    Delete record from one table if it does not exist in another

    I am having problems debugging this code. Private Sub Form_Load() Dim delsql As String Dim UnMatchedQry As String Dim rst As DAO.Recordset UnMatchedQry = "SELECT Purchases.PID" & _ " FROM Purchases LEFT JOIN PurchaseDetail ON Purchases.[PID] = PurchaseDetail.[PID] " & _...
  10. StevenFromSouth

    Using .Fields() method in Recordsets for calculations.

    Hi all, I was fiddling around with Recordsets in VBA and I noticed that you can do things like this "SELECT TOP 1 TotalCost/Amount FROM Sales WHERE [SalesDate] <= " & strDate & _ " And [ProductID] = " & PID & _ " ORDER BY [SalesDate] Desc;" also With...
  11. StevenFromSouth

    How to join tables to get current price of a product.

    Hello, new member here. I'm not too good when it comes to queries but I wanted to stop using DLookups, I've read that they can be highly inefficient and unstable. I saw some posts on this forums and Allen Browne have emphasized that joined queries and subqueries are far superior. I have a...

Part and Inventory Search

Back
Top